|
|||||||||
| 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.LinearFitErrY
public class LinearFitErrY
Given a data set, performs a linear regression, then can be queried for the results. Based on code in Numerical Recipes in C
| Field Summary | |
|---|---|
double[] |
residual
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
LinearFitErrY()
do-nothing initializer to re-use this same code for multiple fits |
|
LinearFitErrY(double[] x,
double[] y)
Creates and performs linear regression on unweighted data set. |
|
LinearFitErrY(double[] x,
double[] y,
double[] sig)
Creates and performs linear regression on weighted data set. |
|
LinearFitErrY(java.io.File batch,
java.io.File out)
Creates a new LinearFitErrY object. |
|
| Method Summary | |
|---|---|
double |
calculateY(double x)
DOCUMENT ME! |
void |
fit(double[] x,
double[] y)
DOCUMENT ME! |
void |
fit(double[] x,
double[] y,
double[] sig)
DOCUMENT ME! |
double |
get_p_value()
DOCUMENT ME! |
double |
getChiSq()
DOCUMENT ME! |
int |
getDegreesOfFreedom()
DOCUMENT ME! |
double |
getOffset()
DOCUMENT ME! |
double |
getOffsetErr()
DOCUMENT ME! |
double |
getReducedChiSq()
DOCUMENT ME! |
double |
getSlope()
DOCUMENT ME! |
double |
getSlopeErr()
DOCUMENT ME! |
LinearFitErrY |
invertFit()
Inverts x and y data sets. |
static void |
main(java.lang.String[] args)
DOCUMENT ME! |
java.lang.String |
toString()
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double[] residual
| Constructor Detail |
|---|
public LinearFitErrY()
public LinearFitErrY(double[] x,
double[] y,
double[] sig)
throws StatisticsException
x - the x coordinates of the pointsy - the y coordinates of the pointssig - the error bars on the y coordinates
StatisticsException
public LinearFitErrY(double[] x,
double[] y)
throws StatisticsException
x - the x coordinates of the pointsy - the y coordinates of the points
StatisticsException
public LinearFitErrY(java.io.File batch,
java.io.File out)
throws StatisticsException
batch - DOCUMENT ME!out - DOCUMENT ME!
StatisticsException - DOCUMENT ME!| Method Detail |
|---|
public void fit(double[] x,
double[] y,
double[] sig)
throws StatisticsException
x - DOCUMENT ME!y - DOCUMENT ME!sig - DOCUMENT ME!
StatisticsException - DOCUMENT ME!
public void fit(double[] x,
double[] y)
throws StatisticsException
x - DOCUMENT ME!y - DOCUMENT ME!
StatisticsException - DOCUMENT ME!public double getSlope()
public double getSlopeErr()
public double getOffset()
public double getOffsetErr()
public double getChiSq()
public double getReducedChiSq()
public int getDegreesOfFreedom()
public double get_p_value()
public double calculateY(double x)
x - DOCUMENT ME!
public LinearFitErrY invertFit()
throws StatisticsException
StatisticsException - DOCUMENT ME!public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
args - the command line arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||