|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.LineFit
vec_math.gaussLineFit
public class gaussLineFit
Class to contain all variables and routines necessary to calculate a gaussian (least squares) line fit thru given points (xi, yi, sig_i). Error only in y. Lit: e.g. Num.Rec, p655ff. Extends the abstract base class LineFit.
| Field Summary | |
|---|---|
double |
S
|
boolean |
Svalid
|
double |
Sx
|
double |
Sxx
|
double |
Sxy
|
double |
Sy
|
double |
Syy
|
| Fields inherited from class vec_math.LineFit |
|---|
alin, asig, blin, bsig, Chi, chiValid, correlation, covariance, fitSigma, fitValid, N, quality, qualityValid, sigma, Weighed, xi, XYValid, yi |
| Constructor Summary | |
|---|---|
gaussLineFit()
|
|
gaussLineFit(double[] x,
double[] y,
double[] sig)
|
|
| Method Summary | |
|---|---|
void |
calcChi()
calc chi square. |
void |
calcLine()
Calcualte the regression line. |
void |
calcQuality()
Calculate quality indicators. |
void |
calcSigma()
Calculate the sigmas of the linear fit e.g. |
void |
calcSums()
Calculate the defining sums. |
static void |
main(String[] arg)
|
void |
setChi(double chi)
|
void |
setSums(double s,
double sx,
double sy,
double sxx,
double sxy,
double syy)
|
protected void |
updateFlag()
Update all true qualities that can be derived by the knowledge of the various Sums, without knowledge wether a point has been added or removed. |
void |
updateOnAdd(double x,
double y,
double sig)
|
void |
updateOnDelete(double x,
double y,
double sig)
|
| Methods inherited from class vec_math.LineFit |
|---|
addPoint, addPoint, deletePoint, deletePoint, deletePoint, setMeasures, setN |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double S
public double Sx
public double Sy
public double Sxx
public double Sxy
public double Syy
public boolean Svalid
| Constructor Detail |
|---|
public gaussLineFit()
public gaussLineFit(double[] x,
double[] y,
double[] sig)
x - y - sig - | Method Detail |
|---|
public void setSums(double s,
double sx,
double sy,
double sxx,
double sxy,
double syy)
s - sx - sy - sxx - sxy - syy - public void setChi(double chi)
chi - public void calcLine()
calcLine in class LineFitpublic void calcSigma()
calcSigma in class LineFitpublic void calcQuality()
calcQuality in class LineFitpublic void calcSums()
public void calcChi()
calcChi in class LineFit
public void updateOnAdd(double x,
double y,
double sig)
updateOnAdd in class LineFitx - y - sig -
public void updateOnDelete(double x,
double y,
double sig)
updateOnDelete in class LineFitx - y - sig - protected void updateFlag()
public static void main(String[] arg)
arg -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||