jsky.science
Class MrqFit
java.lang.Object
jsky.science.MrqFit
public class MrqFit
- extends java.lang.Object
Nonlinear Model fit.
Algorithm taken from 'Numerical Recipes in C' s.14.4, p.545
Combination of mrqmin() and mrqcof() with modified func().
- Version:
- $Revision: 1.1 $
- Author:
- Allan Brighton (Java port), P.Grosbol (ESO, original C version)
Nested Class Summary |
static interface |
MrqFit.MrqFunc
The funcs argument must implement this interface |
Method Summary |
static int |
mrqmin(int ndata,
float[] a,
int ma,
int[] lista,
int mfit,
double[] covar,
double[] alpha,
double[] chisq,
MrqFit.MrqFunc funcs,
double[] alamda)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MrqFit
public MrqFit()
mrqmin
public static int mrqmin(int ndata,
float[] a,
int ma,
int[] lista,
int mfit,
double[] covar,
double[] alpha,
double[] chisq,
MrqFit.MrqFunc funcs,
double[] alamda)
- Returns:
- status, 0: OK, -1: Bad permutation LISTA 1,
-2: Bad permutation LISTA 2, -3: too many variables,
-4: No points (chisq<=0), -5: error in matrix inversion