Constructor

NumCosmoMathFitGSLMMSnew_by_name

Declaration [src]

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

Description [src]

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

Type: NcmLikelihood

A NcmLikelihood.

The data is owned by the caller of the function.
mset

Type: NcmMSet

A NcmMSet.

The data is owned by the caller of the function.
gtype

Type: NcmFitGradType

A NcmFitGradType.

algo_name

Type: gchar*

A string with the name of the algorithm to be used.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: NcmFit

A new NcmFitGSLMMS object.

The caller of the function takes ownership of the data, and is responsible for freeing it.