Click or drag to resize

LevMarAdapter Class

Adapts a FitEnsemble to the requirements of a Levenberg-Marquardt fitting procedure. This means, the adapter makes the FitEnsemble compatible with the Levenberg-Marquardt algorithm.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.Regression.NonlinearLevMarAdapter

Namespace: Altaxo.Calc.Regression.Nonlinear
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class LevMarAdapter

The LevMarAdapter type exposes the following members.

Constructors
 NameDescription
Public methodLevMarAdapter Constructor of the adapter.
Top
Properties
 NameDescription
Public propertyCovarianceMatrix Gets the covariance matrix. The covariance matrix has always a dimension of n x n, with n the number of varying parameters.
Public propertyNumberOfDataNumber of total valid data points (y-values) of the fit ensemble. This is the array size you will need to store the fitting functions output.
Public propertyResultingChiSquare 
Public propertyResultingSigmaSquare 
Top
Methods
 NameDescription
Public methodCanUseJacobianVersion This function determines, wheter or not all fit functions provide the jacobians. In this case, the fitting procedure can make use of the jacobian.
Public methodCopyParametersBackTo 
Public methodDoSimplexMinimization 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodEvaluateChiSquare 
Public methodEvaluateFitDifferences Provides an adapter for the NLFit.LMFunction interface.
Public methodEvaluateFitJacobian Calculates the jacobian values, i.e. the derivatives of the fitting values with respect to the parameters.
Public methodEvaluateFitValues(Double, Boolean) Calculates the fitting values with the currently set parameters.
Public methodEvaluateFitValues(Double, Double, Boolean) Calculates the fitting values.
Public methodEvalulateFitValues Calculates the fitting values.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFit 
Public methodFit1 
Public methodFit2Jac Can only be used, if all fit functions provide the jacobian.
Public methodGetDependentValues Stores the dependent values of all elements in an array. The data are stored from FitElement_0 to FitElement_n. For FitElements with more than one dependent variable in use, the data are stored interleaved.
Public methodGetDependentVariablesInUse Returns the array of indices of dependent variables that are currently in use (i.e. associated with a data column).
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetParameters Copies the current parameters for the fit element with the provided index into the provided array.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetValidNumericRows Returns the collection of valid numeric rows for the given fit element.
Public methodGetWeights Stores the weights for the fit differences in an array. The data are stored from FitElement_0 to FitElement_n. For FitElements with more than one dependent variable in use, the data are stored interleaved.
Public methodHasToUseWeights Returns true if any of the fit elements use scaling weights. In this case we have to calculate the weights for all fit elements and include them in the fitting procedures.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also