Constructor

NumCosmoMathVParamfull_new

Declaration [src]

NcmVParam*
ncm_vparam_full_new (
  guint len,
  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 NcmVParam 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

len

Type: guint

Vector length.

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: gdouble

Value of NcmSParam:lower-bound.

upper_bound

Type: gdouble

Value of NcmSParam:upper-bound.

scale

Type: gdouble

Value of NcmSParam:scale.

abstol

Type: gdouble

Value of NcmSParam:absolute-tolerance.

default_val

Type: gdouble

Value of NcmSParam:default-value.

ftype

Type: NcmParamType

A NcmParamType.

Return value

Type: NcmVParam

A new NcmVParam.

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