public interface Fitter
Modifier and Type | Method and Description |
---|---|
double |
getC()
Get the intercept of the fitted straight line, as in y = Mx + c
|
double |
getChiSq()
Get the chi-squared fitting factor.
|
double |
getM()
Get the slope of the fitted straight line, as in y = Mx + C
|
double |
getQ()
Get quality factor Q.
|
double |
getSigmaC()
Get the standard deviation of the intercept of the fitted line.
|
double |
getSigmaM()
Get the standard deviation of the slope of the fitted line.
|
boolean |
isFitted() |
void |
leastSquaresStraightLine(double[] x,
double[] y,
double[] sigmaY)
Fit a straight line y = Mx + C to the given data points by the least
squares method.
|
double |
x(double y)
Calculate the inverse: x for given y, using the fitted parameters,
x = (y - C) / M.
|
double |
y(double x)
Calculate y for given x, using the fitted parameters, y = Mx + C.
|
boolean isFitted()
void leastSquaresStraightLine(double[] x, double[] y, double[] sigmaY)
double getM()
double getC()
double getSigmaM()
double getSigmaC()
double getChiSq()
double getQ()
double y(double x)
double x(double y)