Class IntegerLeastSquareSolution


  • public class IntegerLeastSquareSolution
    extends Object
    Class holding a solution to an Integer Least Square problem.
    Since:
    10.0
    Author:
    Luc Maisonobe
    • Constructor Detail

      • IntegerLeastSquareSolution

        public IntegerLeastSquareSolution​(long[] solution,
                                          double d2)
        Simple constructor.
        Parameters:
        solution - solution array
        d2 - squared distance to the corresponding float solution
    • Method Detail

      • getSolution

        public long[] getSolution()
        Get the solution array.
        Returns:
        solution array
      • getSquaredDistance

        public double getSquaredDistance()
        Get the squared distance to the corresponding float solution.
        Returns:
        squared distance to the corresponding float solution