Package gov.nih.mipav.model.algorithms
Class AlgorithmSM2.FitSM2ConstrainedModelC
java.lang.Object
gov.nih.mipav.model.algorithms.NLConstrainedEngine
gov.nih.mipav.model.algorithms.AlgorithmSM2.FitSM2ConstrainedModelC
- Enclosing class:
AlgorithmSM2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double[][]private final double[]private final intprivate final double[]private final double[]private final double[]private final double[]private final double[]Fields 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
ConstructorsConstructorDescriptionFitSM2ConstrainedModelC(int nPoints, double[] yData, double[] initial, double[][] exparray, double[] trapezoidConstant, double[] trapezoidSlope, double[] timeVals, double[] r1ptj, double[] ymodel) Creates a new FitDEMRI3ConstrainedModel object. -
Method Summary
Modifier and TypeMethodDescriptionvoiddriver()Starts the analysis.voidDisplay results of displaying SM2 fitting parameters.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
-
yData
private final double[] yData -
exparray
private final double[][] exparray -
tDim
private final int tDim -
trapezoidConstant
private final double[] trapezoidConstant -
trapezoidSlope
private final double[] trapezoidSlope -
timeVals
private final double[] timeVals -
r1ptj
private final double[] r1ptj -
ymodel
private final double[] ymodel
-
-
Constructor Details
-
FitSM2ConstrainedModelC
public FitSM2ConstrainedModelC(int nPoints, double[] yData, double[] initial, double[][] exparray, double[] trapezoidConstant, double[] trapezoidSlope, double[] timeVals, double[] r1ptj, double[] ymodel) Creates a new FitDEMRI3ConstrainedModel object.- Parameters:
nPoints- 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 SM2 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.
-