|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dwvisser.statistics.LinearFitErrXY
Code for fitting a line to data with error bars in both x and y.
Field Summary | |
double |
a
y=a+b*x chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
double |
b
y=a+b*x chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
double |
chi2
y=a+b*x chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
double |
dof
Degrees of freedom = num data points - 2 |
double |
q
y=a+b*x chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
double |
siga
y=a+b*x chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
double |
sigb
y=a+b*x chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
Constructor Summary | |
LinearFitErrXY()
|
Method Summary | |
void |
doFit(double[] x,
double[] y,
double[] sigx,
double[] sigy)
|
double |
getTranslation(double[] x,
double[] dx)
Calculates a value to translate the x's by to diagonalize the coefficient covariance matrix. |
double[] |
translate(double[] x,
double[] dx)
Return an array equal to x with its elements reduced the mean of x. |
double |
valueAt(double x)
Evaluate the function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public double a
public double b
public double siga
public double sigb
public double chi2
public double q
public double dof
Constructor Detail |
public LinearFitErrXY()
Method Detail |
public void doFit(double[] x, double[] y, double[] sigx, double[] sigy) throws StatisticsException
StatisticsException
public double valueAt(double x)
Function
valueAt
in interface Function
public double getTranslation(double[] x, double[] dx)
public double[] translate(double[] x, double[] dx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |