public class PolynomialsLeastSquaresFitterResult extends Object
| Constructor and Description |
|---|
PolynomialsLeastSquaresFitterResult(double[] coefficients,
DoubleMatrix rMatrix,
int dof,
double diffNorm) |
PolynomialsLeastSquaresFitterResult(double[] coefficients,
DoubleMatrix rMatrix,
int dof,
double diffNorm,
double[] meanAndStd) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getCoeff() |
double |
getDiffNorm() |
int |
getDof() |
double[] |
getMeanAndStd() |
DoubleMatrix |
getRMat() |
public PolynomialsLeastSquaresFitterResult(double[] coefficients,
DoubleMatrix rMatrix,
int dof,
double diffNorm)
coefficients - Coefficients of the polynomialrMatrix - R-matrix of the QR decomposition used in PolynomialsLeastSquaresRegressiondof - Degrees of freedom = Number of data points - (degrees of Polynomial + 1)diffNorm - Square norm of the vector, "residuals," whose components are yData_i - f(xData_i)public PolynomialsLeastSquaresFitterResult(double[] coefficients,
DoubleMatrix rMatrix,
int dof,
double diffNorm,
double[] meanAndStd)
coefficients - Coefficients {a_0, a_1, a_2 ...} of the polynomial a_0 + a_1 x^1 + a_2 x^2 + ....rMatrix - R-matrix of the QR decomposition used in PolynomialsLeastSquaresRegressiondof - Degrees of freedom = Number of data points - (degrees of Polynomial + 1)diffNorm - Norm of the vector, "residuals," whose components are yData_i - f(xData_i)meanAndStd - Vector (mean , standard deviation) used in normalizationpublic double[] getCoeff()
public DoubleMatrix getRMat()
public int getDof()
public double getDiffNorm()
public double[] getMeanAndStd()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.