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()
Fitter
public double getC()
Fitter
public double getSigmaM()
Fitter
public double getSigmaC()
Fitter
public double getChiSq()
Fitter
public double getQ()
Fitter
public void leastSquaresStraightLine(double[] x, double[] y, double[] sigmaY)
leastSquaresStraightLine
in interface Fitter
public double y(double x)