|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.physics.nuclear.kinematics.math.analysis.LevenbergMarquadt
public class LevenbergMarquadt
This uses the Levenberg-Marquadt prescription for finding the local
minimum of chi-squared given seed parameter values for the function to fit.
The NonLinearFit class which creates and calls this must
supply the function evaluation and differentiation.
NonLinearFit,
GaussianFit| Field Summary | |
|---|---|
static int |
FIRST_ITERATION
int used when calling to calculate the first iteration |
static int |
LAST_ITERATION
int used when calling to calculate the last iteration |
static int |
NEXT_ITERATION
int used when calling to calculate subsequent iterations |
| Constructor Summary | |
|---|---|
LevenbergMarquadt(NonLinearFit nlf)
Class constructor giving handle to parent. |
|
| Method Summary | |
|---|---|
double |
getChiSq()
Gives the chi-sqared value of the latest iteration. |
int |
getDegreesOfFreedom()
DOCUMENT ME! |
void |
iterate(int iteration)
Calculates a single iteration of the minimization routine. |
void |
setup(double[] counts,
double[] errors,
int minChannel,
int maxChannel)
Sets the histogram values and the boundaries for the fit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FIRST_ITERATION
int used when calling to calculate the first iteration
public static final int NEXT_ITERATION
int used when calling to calculate subsequent iterations
public static final int LAST_ITERATION
int used when calling to calculate the last iteration
| Constructor Detail |
|---|
public LevenbergMarquadt(NonLinearFit nlf)
nlf - the parent NonLinearFit object creating this| Method Detail |
|---|
public void setup(double[] counts,
double[] errors,
int minChannel,
int maxChannel)
counts - the counts in the histogram to fiterrors - DOCUMENT ME!minChannel - the lower limit of the fitmaxChannel - the upper limit of the fit
public void iterate(int iteration)
throws java.lang.Exception
iteration - indicates first, middle, or final iteration
java.lang.Exception - trying to diagonalize singular matricesFIRST_ITERATION,
NEXT_ITERATION,
LAST_ITERATION,
NonLinearFit.doFit()public double getChiSq()
chiSq/dofpublic int getDegreesOfFreedom()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||