|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.physics.nuclear.kinematics.math.statistics.LinearFitErrXY
public class LinearFitErrXY
Code for fitting a line to data with error bars in both x and y.
| Field Summary | |
|---|---|
double |
a
y=a+bx chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
double |
b
y=a+bx chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
double |
chi2
y=a+bx 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+bx chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
double |
siga
y=a+bx chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
double |
sigb
y=a+bx chi2=full chi2 not reduced q=probability of good fit based on chi2 and dof |
| Constructor Summary | |
|---|---|
LinearFitErrXY()
Creates a new LinearFitErrXY object. |
|
| Method Summary | |
|---|---|
void |
doFit(double[] x,
double[] y,
double[] sigx,
double[] sigy)
DOCUMENT ME! |
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)
DOCUMENT ME! |
| 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
x - DOCUMENT ME!y - DOCUMENT ME!sigx - DOCUMENT ME!sigy - DOCUMENT ME!
StatisticsException - DOCUMENT ME!public double valueAt(double x)
valueAt in interface Functionx - DOCUMENT ME!
public double getTranslation(double[] x,
double[] dx)
x - DOCUMENT ME!dx - DOCUMENT ME!
public double[] translate(double[] x,
double[] dx)
x - DOCUMENT ME!dx - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||