public class IntegerLeastSquareComparator extends Object implements Comparator<IntegerLeastSquareSolution>, Serializable
IntegerLeastSquareSolution
instance.IntegerLeastSquareSolution
,
Serialized FormConstructor and Description |
---|
IntegerLeastSquareComparator()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(IntegerLeastSquareSolution ilss1,
IntegerLeastSquareSolution ilss2)
The comparison is based on the squared
distance to the float solution.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public IntegerLeastSquareComparator()
public int compare(IntegerLeastSquareSolution ilss1, IntegerLeastSquareSolution ilss2)
compare
in interface Comparator<IntegerLeastSquareSolution>
Copyright © 2002-2021 CS GROUP. All rights reserved.