| Constructor and Description |
|---|
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.
|
public double getM()
Fitterpublic double getC()
Fitterpublic double getSigmaM()
Fitterpublic double getSigmaC()
Fitterpublic double getChiSq()
Fitterpublic double getQ()
Fitterpublic void leastSquaresStraightLine(double[] x,
double[] y,
double[] sigmaY)
leastSquaresStraightLine in interface Fitterpublic double y(double x)