Top |
NcmFitLevmarNcmFitLevmar — Best-fit finder -- Levenberg-Marquardt nonlinear least squares algorithm library. |
NcmFit * | ncm_fit_levmar_new () |
NcmFit * | ncm_fit_levmar_new_default () |
NcmFit * | ncm_fit_levmar_new_by_name () |
void | ncm_fit_levmar_set_algo () |
This object serves as an implementation of a best-fit finder utilizing the Levenberg-Marquardt nonlinear least squares algorithm library. It is designed as a subclass of NcmFit and operates as a wrapper for the levmar library. It's important to note that the NcmLevMar object can only be effectively employed when all NcmData within the NcmDataset are of Gaussian type, and all priors defined in NcmLikelihood are of Gaussian type as well.
The Levenberg-Marquardt algorithm is a widely recognized approach for solving nonlinear least squares problems. Its particular strength lies in its suitability for solving problems with a substantial number of variables, especially when gradient methods prove impractical.
NcmFit * ncm_fit_levmar_new (NcmLikelihood *lh
,NcmMSet *mset
,NcmFitGradType gtype
,NcmFitLevmarAlgos algo
);
Creates a new NcmFitLevmar object from the given likelihood, model set, gradient type and algorithm.
NcmFit * ncm_fit_levmar_new_default (NcmLikelihood *lh
,NcmMSet *mset
,NcmFitGradType gtype
);
Creates a new NcmFitLevmar object from the given likelihood, model set and gradient type. The algorithm used is the default one (NCM_FIT_LEVMAR_DIF).
NcmFit * ncm_fit_levmar_new_by_name (NcmLikelihood *lh
,NcmMSet *mset
,NcmFitGradType gtype
,gchar *algo_name
);
Creates a new NcmFitLevmar object from the given likelihood, model set, gradient type and algorithm name. If the algorithm name is NULL, the default one (NCM_FIT_LEVMAR_DIF) is used.
lh |
||
mset |
a NcmMSet |
|
gtype |
||
algo_name |
a string containing the name of the algorithm to be used |
void ncm_fit_levmar_set_algo (NcmFitLevmar *fit_levmar
,NcmFitLevmarAlgos algo
);
Sets the algorithm to be used by the given NcmFitLevmar.
“algorithm”
property“algorithm” NcmFitLevmarAlgos
Levmar least squares library algorithm.
Owner: NcmFitLevmar
Flags: Read / Write / Construct
Default value: NCM_FIT_LEVMAR_DIF