NcmFitGSLMM

NcmFitGSLMM — Best-fit finder -- GSL non-linear minimization algorithms.

Functions

Properties

NcmFitGSLMMAlgos algorithm Read / Write / Construct

Types and Values

Object Hierarchy

    GEnum
    ╰── NcmFitGSLMMAlgos
    GObject
    ╰── NcmFit
        ╰── NcmFitGSLMM

Description

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

Functions

ncm_fit_gsl_mm_new ()

NcmFit *
ncm_fit_gsl_mm_new (NcmLikelihood *lh,
                    NcmMSet *mset,
                    NcmFitGradType gtype,
                    NcmFitGSLMMAlgos algo);

Creates a new NcmFitGSLMM object with the given likelihood, model set and gradient type. The algorithm to be used is specified by algo .

Parameters

lh

a NcmLikelihood

 

mset

a NcmMSet

 

gtype

a NcmFitGradType

 

algo

a NcmFitGSLMMAlgos

 

Returns

a new NcmFitGSLMM object.

[transfer full]


ncm_fit_gsl_mm_new_default ()

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

Creates a new NcmFitGSLMM object with the given likelihood, model set and gradient type. The algorithm to be used is the default one (NCM_FIT_GSL_MM_VECTOR_BFGS2).

Parameters

lh

a NcmLikelihood

 

mset

a NcmMSet

 

gtype

a NcmFitGradType

 

Returns

a new NcmFitGSLMM object.

[transfer full]


ncm_fit_gsl_mm_new_by_name ()

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

Creates a new NcmFitGSLMM object with the given likelihood, model set and gradient type. The algorithm to be used is specified by algo_name . If algo_name is NULL, the default algorithm (NCM_FIT_GSL_MM_VECTOR_BFGS2) 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 NcmFitGSLMM object.

[transfer full]


ncm_fit_gsl_mm_set_algo ()

void
ncm_fit_gsl_mm_set_algo (NcmFitGSLMM *fit_gsl_mm,
                         NcmFitGSLMMAlgos algo);

Sets the algorithm to be used by fit_gsl_mm .

Parameters

fit_gsl_mm

a NcmFitGSLMM.

 

algo

a gsl_mm_algorithm.

 

Types and Values

NCM_TYPE_FIT_GSL_MM

#define NCM_TYPE_FIT_GSL_MM (ncm_fit_gsl_mm_get_type ())

enum NcmFitGSLMMAlgos

GSL Multidimensional minimization algorithms

Members

NCM_FIT_GSL_MM_CONJUGATE_FR

Fletcher-Reeves conjugate gradient algorithm

 

NCM_FIT_GSL_MM_CONJUGATE_PR

Polak-Ribiere conjugate gradient algorithm

 

NCM_FIT_GSL_MM_VECTOR_BFGS

Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithm

 

NCM_FIT_GSL_MM_VECTOR_BFGS2

More efficient variation of BFGS algorithm

 

NCM_FIT_GSL_MM_STEEPEST_DESCENT

Steepest descent algorithm

 

NcmFitGSLMM

typedef struct _NcmFitGSLMM NcmFitGSLMM;

Property Details

The “algorithm” property

  “algorithm”                NcmFitGSLMMAlgos

GSL multidimensional minimization algorithm.

Owner: NcmFitGSLMM

Flags: Read / Write / Construct

Default value: NCM_FIT_GSL_MM_VECTOR_BFGS2