Top |
void | (*NcmDataFisherMatrix) () |
NcmData * | ncm_data_ref () |
void | ncm_data_free () |
void | ncm_data_clear () |
NcmData * | ncm_data_dup () |
guint | ncm_data_get_length () |
guint | ncm_data_get_dof () |
void | ncm_data_set_init () |
gboolean | ncm_data_is_init () |
void | ncm_data_set_desc () |
void | ncm_data_take_desc () |
const gchar * | ncm_data_peek_desc () |
gchar * | ncm_data_get_desc () |
void | ncm_data_prepare () |
void | ncm_data_resample () |
gboolean | ncm_data_is_resampling () |
void | ncm_data_bootstrap_create () |
void | ncm_data_bootstrap_remove () |
void | ncm_data_bootstrap_set () |
void | ncm_data_bootstrap_resample () |
gboolean | ncm_data_bootstrap_enabled () |
NcmBootstrap * | ncm_data_peek_bootstrap () |
void | ncm_data_leastsquares_f () |
void | ncm_data_m2lnL_val () |
gboolean | ncm_data_has_mean_vector () |
void | ncm_data_mean_vector () |
void | ncm_data_sigma_vector () |
void | ncm_data_inv_cov_UH () |
void | ncm_data_inv_cov_Uf () |
void | ncm_data_fisher_matrix () |
void | ncm_data_fisher_matrix_bias () |
#define | NCM_TYPE_DATA |
struct | NcmDataClass |
#define | NCM_DATA_RESAMPLE_RNG_NAME |
NcmData |
GObject ╰── NcmData ├── NcmDataGaussDiag ├── NcmDataGaussCov ├── NcmDataDist2d ├── NcmDataDist1d ├── NcmDataGauss ├── NcDataClusterNCount ├── NcDataClusterPseudoCounts ├── NcDataClusterWL ├── NcDataPlanckLKL ├── NcDataReducedShearClusterMass ├── NcmDataFunnel ├── NcmDataGaussMix2D ├── NcmDataPoisson ╰── NcmDataRosenbrock
The NcmData object represent generic data. This is the root object used when building a statistical analysis. Every implementation of NcmData envolves the methods described in NcmDataClass.
A NcmData must implement, at least, the method ncm_data_m2lnL_val()
or
ncm_data_leastsquares_f()
to perform respectively likelihood or least
squares analysis.
void (*NcmDataFisherMatrix) (NcmData *data
,NcmMSet *mset
,NcmMatrix **IM
);
Calculates the Fisher-information matrix I
.
void
ncm_data_clear (NcmData **data
);
Decrease the reference count of *data
and sets the pointer *data
to NULL.
NcmData * ncm_data_dup (NcmData *data
,NcmSerialize *ser_obj
);
Duplicate the data
object.
guint
ncm_data_get_length (NcmData *data
);
Return a integer representing the number of data points.
[virtual get_length]
guint
ncm_data_get_dof (NcmData *data
);
Calculates the degrees of freedom associated with the data.
[virtual get_dof]
void ncm_data_set_init (NcmData *data
,gboolean state
);
Sets the data
to initialized or not state
.
void ncm_data_set_desc (NcmData *data
,const gchar *desc
);
Sets the data
description. It gets a copy of desc.
void ncm_data_take_desc (NcmData *data
,gchar *desc
);
Sets the data
description desc
without copying it, the desc
memory will
be freed (g_free()
) when the object is freed.
void ncm_data_prepare (NcmData *data
,NcmMSet *mset
);
Prepare all models in data
necessary for the statistical calculations.
[virtual prepare]
void ncm_data_resample (NcmData *data
,NcmMSet *mset
,NcmRNG *rng
);
Resample data in data
from the models contained in mset
.
During the resampling the data
is marked as resampling
and prepare is called.
[virtual resample]
void
ncm_data_bootstrap_create (NcmData *data
);
Creates a bootstrap object inside of data
. Uses the default bsize == fsize.
void
ncm_data_bootstrap_remove (NcmData *data
);
Removes a bootstrap object inside of data
if any.
void ncm_data_bootstrap_set (NcmData *data
,NcmBootstrap *bstrap
);
Sets the bstrap
object in data
checking if they are compatible.
void ncm_data_bootstrap_resample (NcmData *data
,NcmRNG *rng
);
Perform one bootstrap, i.e., resample the data with replacement.
gboolean
ncm_data_bootstrap_enabled (NcmData *data
);
Checks whether bootstrap is enabled in data
.
void ncm_data_leastsquares_f (NcmData *data
,NcmMSet *mset
,NcmVector *f
);
Calculates the least squares vector $\vec{f}$ using the models contained in
mset
and set the results in f
.
[virtual leastsquares_f]
void ncm_data_m2lnL_val (NcmData *data
,NcmMSet *mset
,gdouble *m2lnL
);
Calculates the value of $-2\ln(L)$, where $L$ represents the likelihood of
the data given the models in mset
. The result is stored in m2lnL
.
[virtual m2lnL_val]
gboolean
ncm_data_has_mean_vector (NcmData *data
);
This method returns TRUE if the likelihood implements
the ncm_data_mean_vector()
virtual method.
void ncm_data_mean_vector (NcmData *data
,NcmMSet *mset
,NcmVector *mu
);
Calculates the Gaussian mean vector (for non-Gaussian distribution it should calculate the Gaussian approximated mean of the actual distribution).
[virtual mean_vector]
void ncm_data_sigma_vector (NcmData *data
,NcmMSet *mset
,NcmVector *sigma
);
void ncm_data_inv_cov_UH (NcmData *data
,NcmMSet *mset
,NcmMatrix *H
);
Given the Cholesky decomposition of the inverse covariance $C^{-1} = L\cdot U$ this function returns in-place the product $U\cdot H$.
[virtual inv_cov_UH]
void ncm_data_inv_cov_Uf (NcmData *data
,NcmMSet *mset
,NcmVector *f
);
Given the Cholesky decomposition of the inverse covariance $C^{-1} = L\cdot U$ this function returns in-place the product $U\cdot\vec{f}$.
[virtual inv_cov_Uf]
void ncm_data_fisher_matrix (NcmData *data
,NcmMSet *mset
,NcmMatrix **IM
);
Calculates the Fisher-information matrix I
. Note that this is an
additive quantity, i.e., the Fisher-information matrix of different
and uncorrrelated data sets can be added.
[virtual fisher_matrix]
void ncm_data_fisher_matrix_bias (NcmData *data
,NcmMSet *mset
,NcmVector *f_true
,NcmMatrix **IM
,NcmVector **delta_theta
);
Calculates the Fisher-information matrix I
and the bias vector f
assuming that the true theoretical model is f_true
. Note that these
are additive quantities, i.e., the Fisher-information matrix and
the bias vector of different and uncorrrelated data sets can be added.
[virtual fisher_matrix_bias]
“bootstrap”
property“bootstrap” NcmBootstrap *
The NcmData bootstrap object if any.
Owner: NcmData
Flags: Read / Write
“desc”
property “desc” char *
Description of the data object.
Owner: NcmData
Flags: Read / Write
Default value: NULL
“init”
property “init” gboolean
Data initialized state.
Owner: NcmData
Flags: Read / Write
Default value: FALSE
“long-desc”
property “long-desc” char *
Description of the data object.
Owner: NcmData
Flags: Read / Write
Default value: NULL