Constructor
NumCosmoMathSParamnew
Declaration [src]
NcmSParam*
ncm_sparam_new (
const gchar* name,
const gchar* symbol,
gdouble lower_bound,
gdouble upper_bound,
gdouble scale,
gdouble abstol,
gdouble default_val,
NcmParamType ftype
)
Description [src]
This function allocates memory for a new NcmSParam object and sets its properties to the values from
the input arguments.
The name parameter is restricted to the interval [lower_bound, upper_bound].
scale is an initial step for the statistical algorithms.
abstol is the absolute error tolerance of the parameter.
ftype indicates if the parameter will be fitted or not.
Parameters
name-
Type:
const gchar*NcmSParam:name.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. symbol-
Type:
const gchar*NcmSParam:symbol.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. lower_bound-
Type:
gdoubleValue of
NcmSParam:lower-bound. upper_bound-
Type:
gdoubleValue of
NcmSParam:upper-bound. scale-
Type:
gdoubleValue of
NcmSParam:scale. abstol-
Type:
gdoubleValue of
NcmSParam:absolute-tolerance. default_val-
Type:
gdoubleValue of
NcmSParam:default-value. ftype-
Type:
NcmParamTypeA
NcmParamType.
Return value
Type: NcmSParam
A new NcmSParam.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |