public class IntegerLeastSquareSolution extends Object implements Comparable<IntegerLeastSquareSolution>
Constructor and Description |
---|
IntegerLeastSquareSolution(long[] solution,
double d2)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IntegerLeastSquareSolution other) |
boolean |
equals(Object other) |
long[] |
getSolution()
Get the solution array.
|
double |
getSquaredDistance()
Get the squared distance to the corresponding float solution.
|
int |
hashCode() |
public IntegerLeastSquareSolution(long[] solution, double d2)
solution
- solution arrayd2
- squared distance to the corresponding float solutionpublic long[] getSolution()
public double getSquaredDistance()
public int compareTo(IntegerLeastSquareSolution other)
compareTo
in interface Comparable<IntegerLeastSquareSolution>
Copyright © 2002-2020 CS Group. All rights reserved.