|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--dwvisser.analysis.NonLinearFit
|
+--dwvisser.analysis.GaussianFit
This abstract class uses NonLinearFit to fit a single gaussian peak with a background..
The background is a polynomial up to a quadradic term if desired. (Channel - Centroid) is the term
the polynomial is expanded in.
NonLinearFit| Field Summary | |
static java.lang.String |
AREA
name of Parameter--area of peak |
static java.lang.String |
CENTROID
name of Parameter--centroid of peak |
static java.lang.String |
WIDTH
name of Parameter--width of peak |
| Fields inherited from class dwvisser.analysis.NonLinearFit |
chisq, counts, errors, lm, maxCH, minCH |
| Constructor Summary | |
GaussianFit(double[] spectrum,
double[] errors,
int begin,
int end,
Multiplet m)
Class constructor. |
|
| Method Summary | |
double |
derivative(double x,
java.lang.String parName)
Evaluates derivative with respect to parameterName at x. |
void |
estimate()
If so requested, estimates A, Area, and Width. |
Multiplet |
getFitResult()
|
double |
valueAt(double x)
Calculates the gaussian with background at a given x. |
| Methods inherited from class dwvisser.analysis.NonLinearFit |
addParameter, calculate, doFit, getParameter, p, setParameter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CENTROID
Parameter--centroid of peak
public static final java.lang.String WIDTH
Parameter--width of peak
public static final java.lang.String AREA
Parameter--area of peak
| Constructor Detail |
public GaussianFit(double[] spectrum,
double[] errors,
int begin,
int end,
Multiplet m)
throws FitException
| Method Detail |
public void estimate()
throws FitException
estimate in class NonLinearFitFitException - thrown if unrecoverable error occurs during estimationpublic double valueAt(double x)
valueAt in class NonLinearFitx - value to calculate at
public double derivative(double x,
java.lang.String parName)
parameterName at x.
derivative in class NonLinearFitx - value to evalueate atparName - the name of the parameter to differentiate with respect to
x)/d(parameterName) at xpublic Multiplet getFitResult()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||