NcmFitGSLMMS

NcmFitGSLMMS — Best-fit finder -- GSL non-linear minimization (simplex) algorithms.

Functions

Properties

NcmFitGSLMMSAlgos algorithm Read / Write / Construct

Types and Values

Object Hierarchy

    GEnum
    ╰── NcmFitGSLMMSAlgos
    GObject
    ╰── NcmFit
        ╰── NcmFitGSLMMS

Description

This object implements a best-fit finder using the GSL non-linear minimization (simplex) algorithms. It is a subclass of NcmFit.

Functions

ncm_fit_gsl_mms_new ()

NcmFit *
ncm_fit_gsl_mms_new (NcmLikelihood *lh,
                     NcmMSet *mset,
                     NcmFitGradType gtype,
                     NcmFitGSLMMSAlgos algo);

Creates a new NcmFitGSLMMS object from the given likelihood, model set, gradient type and algorithm.

Parameters

lh

a NcmLikelihood

 

mset

a NcmMSet

 

gtype

a NcmFitGradType

 

algo

a NcmFitGSLMMSAlgos

 

Returns

a new NcmFitGSLMMS object.

[transfer full]


ncm_fit_gsl_mms_new_default ()

NcmFit *
ncm_fit_gsl_mms_new_default (NcmLikelihood *lh,
                             NcmMSet *mset,
                             NcmFitGradType gtype);

Creates a new NcmFitGSLMMS object from the given likelihood, model set and gradient type. The algorithm is set to the default one (NCM_FIT_GSL_MMS_NMSIMPLEX2).

Parameters

lh

a NcmLikelihood

 

mset

a NcmMSet

 

gtype

a NcmFitGradType

 

Returns

a new NcmFitGSLMMS object.

[transfer full]


ncm_fit_gsl_mms_new_by_name ()

NcmFit *
ncm_fit_gsl_mms_new_by_name (NcmLikelihood *lh,
                             NcmMSet *mset,
                             NcmFitGradType gtype,
                             gchar *algo_name);

Creates a new NcmFitGSLMMS object from the given likelihood, model set, gradient type and algorithm name. If algo_name is NULL, the default algorithm (NCM_FIT_GSL_MMS_NMSIMPLEX2) is used.

Parameters

lh

a NcmLikelihood

 

mset

a NcmMSet

 

gtype

a NcmFitGradType

 

algo_name

a string with the name of the algorithm to be used

 

Returns

a new NcmFitGSLMMS object.

[transfer full]


ncm_fit_gsl_mms_set_algo ()

void
ncm_fit_gsl_mms_set_algo (NcmFitGSLMMS *fit_gsl_mms,
                          NcmFitGSLMMSAlgos algo);

Sets the algorithm to be used by the NcmFitGSLMMS object.

Parameters

fit_gsl_mms

a NcmFitGSLMMS.

 

algo

a gsl_mms_algorithm.

 

Types and Values

NCM_TYPE_FIT_GSL_MMS

#define NCM_TYPE_FIT_GSL_MMS (ncm_fit_gsl_mms_get_type ())

enum NcmFitGSLMMSAlgos

GSL Multidimensional minimization algorithms without derivatives

Members

NCM_FIT_GSL_MMS_NMSIMPLEX2

Nelder-Mead Simplex algorithm - faster implementation

 

NCM_FIT_GSL_MMS_NMSIMPLEX

Nelson-Mead Simplex algorithm - original implementation

 

NCM_FIT_GSL_MMS_NMSIMPLEX2RAND

Nelder-Mead Simplex algorithm implementation with randomization

 

NcmFitGSLMMS

typedef struct _NcmFitGSLMMS NcmFitGSLMMS;

Property Details

The “algorithm” property

  “algorithm”                NcmFitGSLMMSAlgos

GSL multidimensional minimization algorithm [simplex].

Owner: NcmFitGSLMMS

Flags: Read / Write / Construct

Default value: NCM_FIT_GSL_MMS_NMSIMPLEX2