Class GeneralizedLeastSquareResults<T>
- java.lang.Object
-
- com.opengamma.strata.math.impl.statistics.leastsquare.LeastSquareResults
-
- com.opengamma.strata.math.impl.statistics.leastsquare.GeneralizedLeastSquareResults<T>
-
- Type Parameters:
T- The type of the inputs to the basis functions
public class GeneralizedLeastSquareResults<T> extends LeastSquareResults
Generalized least square calculator.
-
-
Constructor Summary
Constructors Constructor Description GeneralizedLeastSquareResults(List<Function<T,Double>> basisFunctions, double chiSq, DoubleArray parameters, DoubleMatrix covariance)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Function<T,Double>getFunction()Gets the functions field.inthashCode()-
Methods inherited from class com.opengamma.strata.math.impl.statistics.leastsquare.LeastSquareResults
getChiSq, getCovariance, getFitParameters, getFittingParameterSensitivityToData, toString
-
-
-
-
Constructor Detail
-
GeneralizedLeastSquareResults
public GeneralizedLeastSquareResults(List<Function<T,Double>> basisFunctions, double chiSq, DoubleArray parameters, DoubleMatrix covariance)
Creates an instance.- Parameters:
basisFunctions- the basis functionschiSq- the chi-squared of the fitparameters- the parameters that were fitcovariance- the covariance matrix of the result
-
-
Method Detail
-
getFunction
public Function<T,Double> getFunction()
Gets the functions field.- Returns:
- the functions
-
hashCode
public int hashCode()
- Overrides:
hashCodein classLeastSquareResults
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classLeastSquareResults
-
-