Home | History | Annotate | Download | only in direct

Lines Matching refs:comparator

20 import java.util.Comparator;
74 protected void iterateSimplex(final Comparator<RealPointValuePair> comparator)
109 if ((comparator.compare(best, reflected) <= 0) &&
110 (comparator.compare(reflected, secondBest) < 0)) {
113 replaceWorstPoint(reflected, comparator);
115 } else if (comparator.compare(reflected, best) < 0) {
124 if (comparator.compare(expanded, reflected) < 0) {
126 replaceWorstPoint(expanded, comparator);
129 replaceWorstPoint(reflected, comparator);
134 if (comparator.compare(reflected, worst) < 0) {
143 if (comparator.compare(outContracted, reflected) <= 0) {
145 replaceWorstPoint(outContracted, comparator);
158 if (comparator.compare(inContracted, worst) < 0) {
160 replaceWorstPoint(inContracted, comparator);
175 evaluateSimplex(comparator);