A Set of NcmModels

A Set of NcmModels — Object representing a set of different NcmModel objects

Functions

void ncm_mset_model_register_id ()
#define NCM_MSET_MODEL_ID_FUNC()
#define NCM_MSET_MODEL_DECLARE_ID()
#define NCM_MSET_MODEL_REGISTER_ID()
NcmMSetPIndex * ncm_mset_pindex_new ()
NcmMSetPIndex * ncm_mset_pindex_dup ()
void ncm_mset_pindex_free ()
NcmMSet * ncm_mset_empty_new ()
NcmMSet * ncm_mset_new ()
NcmMSet * ncm_mset_newv ()
NcmMSet * ncm_mset_new_array ()
NcmMSet * ncm_mset_ref ()
NcmMSet * ncm_mset_dup ()
void ncm_mset_free ()
void ncm_mset_clear ()
NcmModel * ncm_mset_peek ()
NcmModel * ncm_mset_get ()
void ncm_mset_remove ()
void ncm_mset_set ()
gboolean ncm_mset_exists ()
gint ncm_mset_get_id_by_ns ()
void ncm_mset_prepare_fparam_map ()
guint ncm_mset_total_len ()
guint ncm_mset_fparam_len ()
guint ncm_mset_max_param_name ()
guint ncm_mset_max_fparam_name ()
guint ncm_mset_max_model_nick ()
void ncm_mset_pretty_log ()
void ncm_mset_params_pretty_print ()
void ncm_mset_params_log_vals ()
void ncm_mset_params_print_vals ()
gboolean ncm_mset_params_valid ()
gboolean ncm_mset_cmp ()
void ncm_mset_param_set ()
gdouble ncm_mset_param_get ()
gdouble ncm_mset_orig_param_get ()
guint ncm_mset_param_len ()
const gchar * ncm_mset_param_name ()
void ncm_mset_param_set_ftype ()
void ncm_mset_param_set_all_ftype ()
void ncm_mset_param_set_vector ()
void ncm_mset_param_get_vector ()
gdouble ncm_mset_param_get_scale ()
gdouble ncm_mset_param_get_lower_bound ()
gdouble ncm_mset_param_get_upper_bound ()
gdouble ncm_mset_param_get_abstol ()
NcmParamType ncm_mset_param_get_ftype ()
void ncm_mset_param_set_pi ()
void ncm_mset_param_get_pi ()
void ncm_mset_fparams_get_vector ()
void ncm_mset_fparams_get_vector_offset ()
void ncm_mset_fparams_set_vector ()
void ncm_mset_fparams_set_array ()
void ncm_mset_fparams_set_gsl_vector ()
guint ncm_mset_fparams_len ()
const gchar * ncm_mset_fparam_name ()
const gchar * ncm_mset_fparam_full_name ()
gdouble ncm_mset_fparam_get_scale ()
gdouble ncm_mset_fparam_get_lower_bound ()
gdouble ncm_mset_fparam_get_upper_bound ()
gdouble ncm_mset_fparam_get_abstol ()
gdouble ncm_mset_fparam_get ()
void ncm_mset_fparam_set ()
NcmMSetPIndex * ncm_mset_fparam_get_pi ()
gint ncm_mset_fparam_get_fpi ()
void ncm_mset_save ()
NcmMSet * ncm_mset_load ()

Properties

NcmModel * model-type-0 Read / Write / Construct
NcmModel * model-type-1 Read / Write / Construct
NcmModel * model-type-2 Read / Write / Construct
NcmModel * model-type-3 Read / Write / Construct
NcmModel * model-type-4 Read / Write / Construct
gboolean valid-map Read / Write

Types and Values

Object Hierarchy

    GBoxed
    ╰── NcmMSetPIndex
    GObject
    ╰── NcmMSet

Description

FIXME

Functions

ncm_mset_model_register_id ()

void
ncm_mset_model_register_id (NcmModelClass *model_class,
                            gchar *ns,
                            gchar *desc,
                            gchar *long_desc);

FIXME

Parameters

model_class

FIXME

 

ns

Model namespace.

 

desc

Short description.

 

long_desc

Long description.

 

NCM_MSET_MODEL_ID_FUNC()

#define NCM_MSET_MODEL_ID_FUNC(model_ns) model_ns##_id

FIXME

Parameters

model_ns

FIXME

 

NCM_MSET_MODEL_DECLARE_ID()

#define NCM_MSET_MODEL_DECLARE_ID(model_ns) gint32 NCM_MSET_MODEL_ID_FUNC(model_ns) (void) G_GNUC_CONST

FIXME

Parameters

model_ns

FIXME

 

NCM_MSET_MODEL_REGISTER_ID()

#define             NCM_MSET_MODEL_REGISTER_ID(model_ns,typemacro)

FIXME

Parameters

model_ns

FIXME

 

typemacro

FIXME

 

ncm_mset_pindex_new ()

NcmMSetPIndex *
ncm_mset_pindex_new (NcmModelID mid,
                     guint pid);

FIXME

Parameters

mid

FIXME

 

pid

FIXME

 

Returns

FIXME


ncm_mset_pindex_dup ()

NcmMSetPIndex *
ncm_mset_pindex_dup (NcmMSetPIndex *pi);

FIXME

Parameters

pi

FIXME

 

Returns

FIXME


ncm_mset_pindex_free ()

void
ncm_mset_pindex_free (NcmMSetPIndex *pi);

FIXME

Parameters

pi

FIXME

 

ncm_mset_empty_new ()

NcmMSet *
ncm_mset_empty_new (void);

FIXME

Returns

FIXME


ncm_mset_new ()

NcmMSet *
ncm_mset_new (NcmModel *model0,
              ...);

FIXME

Parameters

model0

FIXME

 

...

FIXME

 

Returns

FIXME


ncm_mset_newv ()

NcmMSet *
ncm_mset_newv (NcmModel *model0,
               va_list ap);

FIXME

Parameters

model0

FIXME

 

ap

FIXME

 

Returns

FIXME.

[transfer full]


ncm_mset_new_array ()

NcmMSet *
ncm_mset_new_array (NcmModel **model);

ncm_mset_ref ()

NcmMSet *
ncm_mset_ref (NcmMSet *mset);

FIXME

Parameters

mset

a NcmMSet.

 

Returns

a new NcmMSet.

[transfer full]


ncm_mset_dup ()

NcmMSet *
ncm_mset_dup (NcmMSet *mset,
              NcmSerialize *ser);

FIXME

Parameters

mset

a NcmMSet.

 

ser

a NcmSerialize.

 

Returns

a new NcmMSet.

[transfer full]


ncm_mset_free ()

void
ncm_mset_free (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

ncm_mset_clear ()

void
ncm_mset_clear (NcmMSet **mset);

FIXME

Parameters

mset

FIXME

 

ncm_mset_peek ()

NcmModel *
ncm_mset_peek (NcmMSet *mset,
               NcmModelID mid);

FIXME

Parameters

mset

a NcmMSet.

 

mid

a NcmModelID.

 

Returns

FIXME.

[transfer none]


ncm_mset_get ()

NcmModel *
ncm_mset_get (NcmMSet *mset,
              NcmModelID mid);

FIXME

Parameters

mset

a NcmMSet.

 

mid

a NcmModelID.

 

Returns

FIXME.

[transfer full]


ncm_mset_remove ()

void
ncm_mset_remove (NcmMSet *mset,
                 NcmModelID mid);

FIXME

Parameters

mset

a NcmMSet.

 

mid

a NcmModelID.

 

ncm_mset_set ()

void
ncm_mset_set (NcmMSet *mset,
              NcmModel *model);

FIXME

Parameters

mset

FIXME

 

model

FIXME

 

ncm_mset_exists ()

gboolean
ncm_mset_exists (NcmMSet *mset,
                 NcmModel *model);

FIXME

Parameters

mset

FIXME

 

model

FIXME

 

Returns

FIXME


ncm_mset_get_id_by_ns ()

gint
ncm_mset_get_id_by_ns (const gchar *ns);

FIXME

Parameters

ns

FIXME

 

Returns

FIXME


ncm_mset_prepare_fparam_map ()

void
ncm_mset_prepare_fparam_map (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

ncm_mset_total_len ()

guint
ncm_mset_total_len (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

Returns

FIXME


ncm_mset_fparam_len ()

guint
ncm_mset_fparam_len (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

Returns

FIXME


ncm_mset_max_param_name ()

guint
ncm_mset_max_param_name (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

Returns

FIXME


ncm_mset_max_fparam_name ()

guint
ncm_mset_max_fparam_name (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

Returns

FIXME


ncm_mset_max_model_nick ()

guint
ncm_mset_max_model_nick (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

Returns

FIXME


ncm_mset_pretty_log ()

void
ncm_mset_pretty_log (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

ncm_mset_params_pretty_print ()

void
ncm_mset_params_pretty_print (NcmMSet *mset,
                              FILE *out,
                              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.

Parameters

mset

a NcmMSet

 

out

name of the file

 

header

pointer to the command line

 

ncm_mset_params_log_vals ()

void
ncm_mset_params_log_vals (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

ncm_mset_params_print_vals ()

void
ncm_mset_params_print_vals (NcmMSet *mset,
                            FILE *out);

FIXME

Parameters

mset

FIXME

 

out

FIXME

 

ncm_mset_params_valid ()

gboolean
ncm_mset_params_valid (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

Returns

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. If cmp_model is TRUE compare also if the models are the same.

Parameters

mset0

FIXME

 

mset1

FIXME

 

cmp_model

FIXME

 

Returns

FIXME


ncm_mset_param_set ()

void
ncm_mset_param_set (NcmMSet *mset,
                    NcmModelID mid,
                    guint pid,
                    const gdouble x);

FIXME

Parameters

mset

a NcmMSet

 

mid

FIXME

 

pid

FIXME

 

x

FIXME

 

ncm_mset_param_get ()

gdouble
ncm_mset_param_get (NcmMSet *mset,
                    NcmModelID mid,
                    guint pid);

FIXME

Parameters

mset

a NcmMSet

 

mid

FIXME

 

pid

FIXME

 

Returns

FIXME


ncm_mset_orig_param_get ()

gdouble
ncm_mset_orig_param_get (NcmMSet *mset,
                         NcmModelID mid,
                         guint pid);

FIXME

Parameters

mset

a NcmMSet

 

mid

FIXME

 

pid

FIXME

 

Returns

FIXME


ncm_mset_param_len ()

guint
ncm_mset_param_len (NcmMSet *mset);

FIXME

Parameters

mset

FIXME

 

Returns

FIXME


ncm_mset_param_name ()

const gchar *
ncm_mset_param_name (NcmMSet *mset,
                     NcmModelID mid,
                     guint pid);

FIXME

Parameters

mset

a NcmMSet

 

mid

FIXME

 

pid

FIXME

 

Returns

FIXME


ncm_mset_param_set_ftype ()

void
ncm_mset_param_set_ftype (NcmMSet *mset,
                          NcmModelID mid,
                          guint pid,
                          NcmParamType ftype);

FIXME

Parameters

mset

a NcmMSet

 

mid

FIXME

 

pid

FIXME

 

ftype

FIXME

 

ncm_mset_param_set_all_ftype ()

void
ncm_mset_param_set_all_ftype (NcmMSet *mset,
                              NcmParamType ftype);

FIXME

Parameters

mset

a NcmMSet

 

ftype

FIXME

 

ncm_mset_param_set_vector ()

void
ncm_mset_param_set_vector (NcmMSet *mset,
                           NcmVector *params);

Set the models parameters using values from params .

Parameters

mset

a NcmMSet

 

params

FIXME

 

ncm_mset_param_get_vector ()

void
ncm_mset_param_get_vector (NcmMSet *mset,
                           NcmVector *params);

Set the compontents of params using the models parameters.

Parameters

mset

a NcmMSet

 

params

FIXME

 

ncm_mset_param_get_scale ()

gdouble
ncm_mset_param_get_scale (NcmMSet *mset,
                          NcmModelID mid,
                          guint pid);

FIXME

Parameters

mset

a NcmMSet

 

mid

FIXME

 

pid

FIXME

 

Returns

FIXME


ncm_mset_param_get_lower_bound ()

gdouble
ncm_mset_param_get_lower_bound (NcmMSet *mset,
                                NcmModelID mid,
                                guint pid);

FIXME

Parameters

mset

a NcmMSet

 

mid

FIXME

 

pid

FIXME

 

Returns

FIXME


ncm_mset_param_get_upper_bound ()

gdouble
ncm_mset_param_get_upper_bound (NcmMSet *mset,
                                NcmModelID mid,
                                guint pid);

FIXME

Parameters

mset

a NcmMSet

 

mid

FIXME

 

pid

FIXME

 

Returns

FIXME


ncm_mset_param_get_abstol ()

gdouble
ncm_mset_param_get_abstol (NcmMSet *mset,
                           NcmModelID mid,
                           guint pid);

FIXME

Parameters

mset

a NcmMSet

 

mid

FIXME

 

pid

FIXME

 

Returns

FIXME


ncm_mset_param_get_ftype ()

NcmParamType
ncm_mset_param_get_ftype (NcmMSet *mset,
                          NcmModelID mid,
                          guint pid);

FIXME

Parameters

mset

a NcmMSet.

 

mid

a NcmModelID.

 

pid

FIXME

 

Returns

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

FIXME

 

x

FIXME

 

n

FIXME

 

ncm_mset_param_get_pi ()

void
ncm_mset_param_get_pi (NcmMSet *mset,
                       NcmMSetPIndex *pi,
                       gdouble *x,
                       guint n);

FIXME

Parameters

mset

a NcmMSet

 

pi

FIXME

 

x

FIXME

 

n

FIXME

 

ncm_mset_fparams_get_vector ()

void
ncm_mset_fparams_get_vector (NcmMSet *mset,
                             NcmVector *x);

FIXME

Parameters

mset

a NcmMSet

 

x

FIXME

 

ncm_mset_fparams_get_vector_offset ()

void
ncm_mset_fparams_get_vector_offset (NcmMSet *mset,
                                    NcmVector *x,
                                    guint offset);

FIXME

Parameters

mset

a NcmMSet

 

x

FIXME

 

offset

FIXME

 

ncm_mset_fparams_set_vector ()

void
ncm_mset_fparams_set_vector (NcmMSet *mset,
                             const NcmVector *x);

FIXME

Parameters

mset

a NcmMSet

 

x

FIXME

 

ncm_mset_fparams_set_array ()

void
ncm_mset_fparams_set_array (NcmMSet *mset,
                            const gdouble *x);

FIXME

Parameters

mset

a NcmMSet

 

x

FIXME

 

ncm_mset_fparams_set_gsl_vector ()

void
ncm_mset_fparams_set_gsl_vector (NcmMSet *mset,
                                 const gsl_vector *x);

FIXME

Parameters

mset

a NcmMSet.

 

x

FIXME

 

ncm_mset_fparams_len ()

guint
ncm_mset_fparams_len (NcmMSet *mset);

FIXME

Parameters

mset

a NcmMSet

 

Returns

FIXME


ncm_mset_fparam_name ()

const gchar *
ncm_mset_fparam_name (NcmMSet *mset,
                      guint n);

FIXME

Parameters

mset

a NcmMSet

 

n

FIXME

 

Returns

FIXME.

[transfer none]


ncm_mset_fparam_full_name ()

const gchar *
ncm_mset_fparam_full_name (NcmMSet *mset,
                           guint n);

FIXME

Parameters

mset

a NcmMSet

 

n

FIXME

 

Returns

FIXME.

[transfer none]


ncm_mset_fparam_get_scale ()

gdouble
ncm_mset_fparam_get_scale (NcmMSet *mset,
                           guint n);

FIXME

Parameters

mset

a NcmMSet

 

n

FIXME

 

Returns

FIXME


ncm_mset_fparam_get_lower_bound ()

gdouble
ncm_mset_fparam_get_lower_bound (NcmMSet *mset,
                                 guint n);

FIXME

Parameters

mset

a NcmMSet

 

n

FIXME

 

Returns

FIXME


ncm_mset_fparam_get_upper_bound ()

gdouble
ncm_mset_fparam_get_upper_bound (NcmMSet *mset,
                                 guint n);

FIXME

Parameters

mset

a NcmMSet

 

n

FIXME

 

Returns

FIXME


ncm_mset_fparam_get_abstol ()

gdouble
ncm_mset_fparam_get_abstol (NcmMSet *mset,
                            guint n);

FIXME

Parameters

mset

a NcmMSet

 

n

FIXME

 

Returns

FIXME


ncm_mset_fparam_get ()

gdouble
ncm_mset_fparam_get (NcmMSet *mset,
                     guint n);

FIXME

Parameters

mset

a NcmMSet

 

n

FIXME

 

Returns

FIXME


ncm_mset_fparam_set ()

void
ncm_mset_fparam_set (NcmMSet *mset,
                     guint n,
                     const gdouble x);

FIXME

Parameters

mset

a NcmMSet

 

n

FIXME

 

x

FIXME

 

ncm_mset_fparam_get_pi ()

NcmMSetPIndex *
ncm_mset_fparam_get_pi (NcmMSet *mset,
                        guint n);

FIXME

Parameters

mset

a NcmMSet

 

n

FIXME

 

Returns

FIXME


ncm_mset_fparam_get_fpi ()

gint
ncm_mset_fparam_get_fpi (NcmMSet *mset,
                         NcmModelID mid,
                         guint pid);

FIXME

Parameters

mset

a NcmMSet.

 

mid

a NcmModelID.

 

pid

FIXME

 

Returns

FIXME


ncm_mset_save ()

void
ncm_mset_save (NcmMSet *mset,
               gchar *filename,
               gboolean save_comment);

FIXME

Parameters

mset

FIXME

 

filename

FIXME

 

save_comment

FIXME

 

ncm_mset_load ()

NcmMSet *
ncm_mset_load (gchar *filename);

FIXME

Parameters

filename

FIXME

 

Returns

FIXME.

[transfer full]

Types and Values

NCM_MODEL_MAX_ID

#define NCM_MODEL_MAX_ID 5

struct NcmMSetModelDesc

struct NcmMSetModelDesc {
};

Property Details

The “model-type-0” property

  “model-type-0”             NcmModel *

Model type 0.

Flags: Read / Write / Construct


The “model-type-1” property

  “model-type-1”             NcmModel *

Model type 1.

Flags: Read / Write / Construct


The “model-type-2” property

  “model-type-2”             NcmModel *

Model type 2.

Flags: Read / Write / Construct


The “model-type-3” property

  “model-type-3”             NcmModel *

Model type 3.

Flags: Read / Write / Construct


The “model-type-4” property

  “model-type-4”             NcmModel *

Model type 4.

Flags: Read / Write / Construct


The “valid-map” property

  “valid-map”                gboolean

Valid properties map.

Flags: Read / Write

Default value: FALSE