Top | ![]() |
![]() |
![]() |
![]() |
Functions
Properties
GStrv | fmap | Read / Write |
NcmObjArray * | model-array | Read / Write / Construct |
gboolean | valid-map | Read / Write |
Types and Values
#define | NCM_MSET_MAX_STACKSIZE |
#define | NCM_MSET_INIT_MARRAY |
struct | NcmMSetModelDesc |
#define | NCM_MSET_MODEL_MAIN |
Functions
ncm_mset_model_register_id ()
void ncm_mset_model_register_id (NcmModelClass *model_class
,const gchar *ns
,const gchar *desc
,const gchar *long_desc
,gboolean can_stack
,NcmModelID main_model_id
);
FIXME
[skip]
Parameters
model_class |
a NcmModelClass |
|
ns |
model namespace |
|
desc |
short description |
|
long_desc |
long description |
|
can_stack |
whether the models can stack in a NcmMSet |
|
main_model_id |
main model id, use -1 if this is a main model |
NCM_MSET_MODEL_DECLARE_ID()
#define NCM_MSET_MODEL_DECLARE_ID(model_ns) NcmModelID NCM_MSET_MODEL_ID_FUNC(model_ns) (void) G_GNUC_CONST
FIXME
ncm_mset_peek_pos ()
NcmModel * ncm_mset_peek_pos (NcmMSet *mset
,NcmModelID base_mid
,guint stackpos_id
);
FIXME
ncm_mset_set_pos ()
void ncm_mset_set_pos (NcmMSet *mset
,NcmModel *model
,guint stackpos_id
);
FIXME
ncm_mset_exists_pos ()
gboolean ncm_mset_exists_pos (NcmMSet *mset
,NcmModel *model
,guint stackpos_id
);
FIXME
ncm_mset_set_fmap ()
void ncm_mset_set_fmap (NcmMSet *mset
,const gchar *const *fmap
,gboolean update_models
);
FIXME
Parameters
mset |
a NcmMSet |
|
fmap |
an array of strings. |
[in][array zero-terminated=1][element-type utf8] |
update_models |
a boolean |
ncm_mset_params_pretty_print ()
void ncm_mset_params_pretty_print (NcmMSet *mset
,FILE *out
,const gchar *header
);
This function print the command line (first line, commented), the model nick and parameters' names (second line, commented) and their values indicating if they are fixed or free.
ncm_mset_fparams_log_covar ()
void ncm_mset_fparams_log_covar (NcmMSet *mset
,NcmMatrix *covar
);
FIXME
ncm_mset_cmp ()
gboolean ncm_mset_cmp (NcmMSet *mset0
,NcmMSet *mset1
,gboolean cmp_model
);
Compares mset0
and mset1
and returns TRUE if both coitains the same models types.
If cmp_model
is TRUE compare also if the models correspond to the same objects.
ncm_mset_param_set ()
void ncm_mset_param_set (NcmMSet *mset
,NcmModelID mid
,guint pid
,const gdouble x
);
FIXME
ncm_mset_param_set0 ()
void ncm_mset_param_set0 (NcmMSet *mset
,NcmModelID mid
,guint pid
,const gdouble x
);
FIXME
ncm_mset_orig_param_get ()
gdouble ncm_mset_orig_param_get (NcmMSet *mset
,NcmModelID mid
,guint pid
);
FIXME
ncm_mset_param_name ()
const gchar * ncm_mset_param_name (NcmMSet *mset
,NcmModelID mid
,guint pid
);
FIXME
ncm_mset_param_symbol ()
const gchar * ncm_mset_param_symbol (NcmMSet *mset
,NcmModelID mid
,guint pid
);
FIXME
ncm_mset_param_set_ftype ()
void ncm_mset_param_set_ftype (NcmMSet *mset
,NcmModelID mid
,guint pid
,NcmParamType ftype
);
FIXME
ncm_mset_param_set_all_ftype ()
void ncm_mset_param_set_all_ftype (NcmMSet *mset
,NcmParamType ftype
);
Set all parameters of all models to ftype
.
ncm_mset_param_set_mid_ftype ()
void ncm_mset_param_set_mid_ftype (NcmMSet *mset
,NcmModelID mid
,NcmParamType ftype
);
Set all parameters of mid
model to ftype
.
ncm_mset_param_set_all_but_mid_ftype ()
void ncm_mset_param_set_all_but_mid_ftype (NcmMSet *mset
,NcmModelID mid
,NcmParamType ftype
);
Set all parameters of all models but mid
to ftype
.
ncm_mset_param_set_ftype_from_fmap ()
void
ncm_mset_param_set_ftype_from_fmap (NcmMSet *mset
);
Set all parameters of all models inside mset
in order
to reflect the current fmap.
ncm_mset_param_set_vector ()
void ncm_mset_param_set_vector (NcmMSet *mset
,NcmVector *params
);
Sets the models parameters using values from the NcmVector params
.
ncm_mset_param_get_vector ()
void ncm_mset_param_get_vector (NcmMSet *mset
,NcmVector *params
);
Sets the compontents of params
using the models parameters.
ncm_mset_param_set_mset ()
void ncm_mset_param_set_mset (NcmMSet *mset_dest
,NcmMSet *mset_src
);
Copy parameters from mset_src
to mset_dest
, both NcmMSet must
be compatible.
ncm_mset_param_get_scale ()
gdouble ncm_mset_param_get_scale (NcmMSet *mset
,NcmModelID mid
,guint pid
);
FIXME
ncm_mset_param_get_lower_bound ()
gdouble ncm_mset_param_get_lower_bound (NcmMSet *mset
,NcmModelID mid
,guint pid
);
FIXME
ncm_mset_param_get_upper_bound ()
gdouble ncm_mset_param_get_upper_bound (NcmMSet *mset
,NcmModelID mid
,guint pid
);
FIXME
ncm_mset_param_get_abstol ()
gdouble ncm_mset_param_get_abstol (NcmMSet *mset
,NcmModelID mid
,guint pid
);
FIXME
ncm_mset_param_get_ftype ()
NcmParamType ncm_mset_param_get_ftype (NcmMSet *mset
,NcmModelID mid
,guint pid
);
FIXME
ncm_mset_param_set_scale ()
void ncm_mset_param_set_scale (NcmMSet *mset
,NcmModelID mid
,guint pid
,gdouble scale
);
FIXME
ncm_mset_param_set_pi ()
void ncm_mset_param_set_pi (NcmMSet *mset
,NcmMSetPIndex *pi
,const gdouble *x
,guint n
);
FIXME
Parameters
mset |
a NcmMSet |
|
pi |
[array length=n][element-type NcmMSetPIndex] | |
x |
values to be set. |
[array length=n][element-type double] |
n |
number of parameters to set |
ncm_mset_param_get_pi ()
void ncm_mset_param_get_pi (NcmMSet *mset
,NcmMSetPIndex *pi
,gdouble *x
,guint n
);
FIXME
ncm_mset_fparams_get_vector ()
void ncm_mset_fparams_get_vector (NcmMSet *mset
,NcmVector *x
);
FIXME
ncm_mset_fparams_get_vector_offset ()
void ncm_mset_fparams_get_vector_offset (NcmMSet *mset
,NcmVector *x
,guint offset
);
FIXME
ncm_mset_fparams_set_vector ()
void ncm_mset_fparams_set_vector (NcmMSet *mset
,const NcmVector *x
);
FIXME
ncm_mset_fparams_set_vector_offset ()
void ncm_mset_fparams_set_vector_offset (NcmMSet *mset
,const NcmVector *x
,guint offset
);
FIXME
ncm_mset_fparams_set_array ()
void ncm_mset_fparams_set_array (NcmMSet *mset
,const gdouble *x
);
FIXME
ncm_mset_fparams_set_gsl_vector ()
void ncm_mset_fparams_set_gsl_vector (NcmMSet *mset
,const gsl_vector *x
);
FIXME
[skip]
ncm_mset_fparam_full_name ()
const gchar * ncm_mset_fparam_full_name (NcmMSet *mset
,guint n
);
FIXME
ncm_mset_param_get_by_full_name ()
NcmMSetPIndex * ncm_mset_param_get_by_full_name (NcmMSet *mset
,const gchar *fullname
);
FIXME
ncm_mset_fparam_get_lower_bound ()
gdouble ncm_mset_fparam_get_lower_bound (NcmMSet *mset
,guint n
);
FIXME
ncm_mset_fparam_get_upper_bound ()
gdouble ncm_mset_fparam_get_upper_bound (NcmMSet *mset
,guint n
);
FIXME
ncm_mset_fparam_set_scale ()
void ncm_mset_fparam_set_scale (NcmMSet *mset
,guint n
,gdouble scale
);
FIXME
ncm_mset_fparam_valid_bounds ()
gboolean ncm_mset_fparam_valid_bounds (NcmMSet *mset
,NcmVector *theta
);
FIXME
ncm_mset_fparam_valid_bounds_offset ()
gboolean ncm_mset_fparam_valid_bounds_offset (NcmMSet *mset
,NcmVector *theta
,guint offset
);
FIXME
ncm_mset_fparam_validate_all ()
gboolean ncm_mset_fparam_validate_all (NcmMSet *mset
,NcmVector *theta
);
FIXME
ncm_mset_fparam_get_pi ()
const NcmMSetPIndex * ncm_mset_fparam_get_pi (NcmMSet *mset
,guint n
);
FIXME
ncm_mset_fparam_get_fpi ()
gint ncm_mset_fparam_get_fpi (NcmMSet *mset
,NcmModelID mid
,guint pid
);
FIXME
ncm_mset_fparam_get_pi_by_name ()
const NcmMSetPIndex * ncm_mset_fparam_get_pi_by_name (NcmMSet *mset
,const gchar *name
);
FIXME
ncm_mset_save ()
void ncm_mset_save (NcmMSet *mset
,NcmSerialize *ser
,const gchar *filename
,gboolean save_comment
);
FIXME
Property Details
The “model-array”
property
“model-array” NcmObjArray *
NcmModel array.
Owner: NcmMSet
Flags: Read / Write / Construct
The “valid-map”
property
“valid-map” gboolean
Valid properties map.
Owner: NcmMSet
Flags: Read / Write
Default value: FALSE