Lines Matching refs:max
54 * the "+", "-", <em>max</em>, and <em>min</em> operators on
74 * max([a1, b1], [a2, b2]) = [max(a1, a2), max(b1, b2)]
87 * max([a1, b1, c1], [a2, b2, c2]) = [max(a1, a2), max(b1, b2), max(c1, c2)]
96 * min(X, Y) = -max(-X, -Y)
142 * @see #max
236 protected int max;
242 public StaticSpring(int min, int pref, int max) {
245 this.max = max;
249 return "StaticSpring [" + min + ", " + pref + ", " + max + "]";
261 return max;
272 // Note the use of max value rather than minimum value here.
441 min = pref = max = UNSET;
463 if (max == UNSET) {
464 max = op(s1.getMaximumValue(), s2.getMaximumValue());
466 return max;
504 return Math.max(x, y);
532 * and <code>max</code> respectively.
536 * @param max the <em>maximum</em> value of the new spring
539 * and <code>max</code> respectively
543 public static Spring constant(int min, int pref, int max) {
544 return new StaticSpring(min, pref, max);
574 * max - pref
593 * Returns <code>max(s1, s2)</code>: a spring whose value is always greater than (or equal to)
596 * @return <code>max(s1, s2)</code>: a spring whose value is always greater than (or equal to)
600 public static Spring max(Spring s1, Spring s2) {
613 return minus(max(minus(s1), minus(s2)));