Package gov.nih.mipav.model.algorithms
Class AlgorithmFRAP.FitDoubleExponentialModel
java.lang.Object
gov.nih.mipav.model.algorithms.NLConstrainedEngine
gov.nih.mipav.model.algorithms.AlgorithmFRAP.FitDoubleExponentialModel
- Enclosing class:
AlgorithmFRAP
DOCUMENT ME!
-
Field Summary
FieldsFields inherited from class gov.nih.mipav.model.algorithms.NLConstrainedEngine
a, absoluteConvergence, analyticalJacobian, bl, bounds, bu, ctrlMat, dyda, gues, internalScaling, iters, jacobian, maxIterations, nPts, outputMes, param, parameterConvergence, relativeConvergence, residuals, secondAllowed, stdv, tolerance -
Constructor Summary
ConstructorsConstructorDescriptionFitDoubleExponentialModel(int nPoints, double[] xData, float[] yData, double[] initial) Creates a new FitDoubleExponentialModel object. -
Method Summary
Modifier and TypeMethodDescriptionvoiddriver()Starts the analysis.voidDisplay results of displaying exponential fitting parameters.double[]fitToFunction(double[] x1, double[] atry) Fit to function - a3 + a4*[1 - ao*exp(a1*x) - (1 - a0)*exp(a2*x)].voidfitToFunction(double[] a, double[] residuals, double[][] covarMat) fitToFunction communicates with 3 protected variables param, nPts, and ctrlMat ctrlMat is used as a wrapper for ctrl or lctrl.Methods inherited from class gov.nih.mipav.model.algorithms.NLConstrainedEngine
dumpTestResults, fitToTestFunction, getChiSquared, getExitStatus, getIterations, getParameters, getResiduals, statusMessage
-
Field Details
-
xData
private double[] xData -
yData
private float[] yData
-
-
Constructor Details
-
FitDoubleExponentialModel
public FitDoubleExponentialModel(int nPoints, double[] xData, float[] yData, double[] initial) Creates a new FitDoubleExponentialModel object.- Parameters:
nPoints- DOCUMENT ME!xData- DOCUMENT ME!yData- DOCUMENT ME!initial- DOCUMENT ME!
-
-
Method Details
-
driver
public void driver()Starts the analysis.- Overrides:
driverin classNLConstrainedEngine
-
dumpResults
public void dumpResults()Display results of displaying exponential fitting parameters. -
fitToFunction
public void fitToFunction(double[] a, double[] residuals, double[][] covarMat) Description copied from class:NLConstrainedEnginefitToFunction communicates with 3 protected variables param, nPts, and ctrlMat ctrlMat is used as a wrapper for ctrl or lctrl. Evaluates the residuals or the Jacobian at a certain a[]- Specified by:
fitToFunctionin classNLConstrainedEngine- Parameters:
a- The best guess parameter values.residuals- ymodel - yData.covarMat- The derivative values of y with respect to fitting parameters.
-
fitToFunction
public double[] fitToFunction(double[] x1, double[] atry) Fit to function - a3 + a4*[1 - ao*exp(a1*x) - (1 - a0)*exp(a2*x)].- Parameters:
x1- The x value of the data point.atry- The best guess parameter values.- Returns:
- The calculated y value.
-