Function

NumCosmoMathFitfactory

Declaration [src]

NcmFit*
ncm_fit_factory (
  NcmFitType ftype,
  gchar* algo_name,
  NcmLikelihood* lh,
  NcmMSet* mset,
  NcmFitGradType gtype
)

Description [src]

Creates a new NcmFit object.

Parameters

ftype

Type: NcmFitType

A NcmFitType.

algo_name

Type: gchar*

Name of the algorithm to be used.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
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.

Return value

Type: NcmFit

A new NcmFit object.

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