Class method

NumCosmoMathModelClassset_sparam

Declaration [src]

void
ncm_model_class_set_sparam (
  NcmModelClass* model_class,
  guint sparam_id,
  const gchar* symbol,
  const gchar* name,
  gdouble lower_bound,
  gdouble upper_bound,
  gdouble scale,
  gdouble abstol,
  gdouble default_value,
  NcmParamType ppt
)

Description [src]

Helper function to set a scalar parameter. It creates a NcmSParam object and calls ncm_model_class_set_sparam_obj().

Parameters

sparam_id

Type: guint

Id of the scalar parameter.

symbol

Type: const gchar*

Symbol of the scalar parameter.

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

Type: const gchar*

Name of the sacalar parameter.

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

Type: gdouble

Lower-bound value.

upper_bound

Type: gdouble

Upper-bound value.

scale

Type: gdouble

Parameter scale.

abstol

Type: gdouble

Parameter absolute tolerance.

default_value

Type: gdouble

Default value.

ppt

Type: NcmParamType

A NcmParamType.