| Modifier and Type | Field and Description |
|---|---|
int |
ITERATIONS |
| Constructor and Description |
|---|
MarquardtFitter(Function funct) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateDerivative(int k,
double[] params,
double[] x)
Given a set of parameters, and inputs, calculates the derivative
of the k'th parameter
d/d a_k (F)
|
void |
calculateDerivatives()
Creates an array of derivatives since each one is used 3x's
|
double |
calculateErrors()
returns the cumulative error for current values
|
double |
calculateSecondDerivative(int l,
int k,
double[] params,
double[] x)
NOT USED.
|
void |
createAlphaPrimeMatrix() |
void |
createBetaMatrix() |
void |
fitData()
Main routine, call this and the Parameters are iterated until it is finished.
|
double[] |
getParameters()
Gets the current set of parameters values.
|
double[] |
getUncertainty() |
void |
initializeWorkspace() |
void |
iterateValues()
Takes the current error, and the current parameter set and calculates the
changes, then returns the maximum changed value
|
String |
printMatrix()
for stack traces
|
void |
setData(double[][] xvalues,
double[] zvalues)
Sets the values of of the original data points that are going to be fit.
|
void |
setParameters(double[] parameters) |
void |
updateLambda(double value) |
public MarquardtFitter(Function funct)
public void setData(double[][] xvalues,
double[] zvalues)
public void setParameters(double[] parameters)
setParameters in interface Fitterpublic double calculateErrors()
calculateErrors in interface Fitterpublic double calculateDerivative(int k,
double[] params,
double[] x)
k - - index of the parameter that the derivative is being taken ofparams - - array that will be used to calculate derivatives, note params will be modified.x - - set of values to use.public void calculateDerivatives()
public double calculateSecondDerivative(int l,
int k,
double[] params,
double[] x)
k - - index of the parameter that the derivative is being taken ofparams - - array that will be used to calculate derivatives, note params will be modified.x - - set of values to use.public void createBetaMatrix()
public void createAlphaPrimeMatrix()
public void iterateValues()
public void initializeWorkspace()
public void fitData()
public void updateLambda(double value)
public double[] getParameters()
getParameters in interface Fitterpublic double[] getUncertainty()
getUncertainty in interface Fitterpublic String printMatrix()
Copyright © 2016. All rights reserved.