Class
NumCosmoMathDataDist2d
Description [src]
abstract class NumCosmoMath.DataDist2d : NumCosmoMath.Data
{
/* No available fields */
}
Abstract class for a sample drawn from a two-dimensional distribution.
The data are NcmDataDist2d:n-points pairs $(x_i, y_i)$, the rows of
NcmDataDist2d:matrix, each drawn independently from a distribution with density
$p(x, y)$ given the models in a NcmMSet, and $-2\ln L = \sum_i -2\ln p(x_i, y_i)$.
Subclasses implement dist2d_m2lnL_val, which returns $-2\ln p(x, y)$ for one pair, and, to resample, inv_pdf, which maps two uniform numbers $u, v \in [0, 1]$ to a draw of the distribution, see ncm_data_dist2d_inv_pdf(). The default methods abort with a message naming the class.
Properties
NumCosmoMath.DataDist2d:n-points
The number of points; changing it reallocates the data and marks it not initialized.
Properties inherited from NcmData (5)
NumCosmoMath.Data:bootstrap
The NcmData bootstrap object if any.
NumCosmoMath.Data:desc
Description of the data object.
NumCosmoMath.Data:init
Whether the NcmData is initialized, i.e., holds data.
NumCosmoMath.Data:long-desc
Detailed description of the data object.
NumCosmoMath.Data:name
Name of the data object.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct NumCosmoMathDataDist2dClass {
gdouble (* dist2d_m2lnL_val) (
NcmDataDist2d* dist2d,
NcmMSet* mset,
gdouble x,
gdouble y
);
void (* inv_pdf) (
NcmDataDist2d* dist2d,
NcmMSet* mset,
gdouble u,
gdouble v,
gdouble* x,
gdouble* y
);
void (* set_size) (
NcmDataDist2d* dist2d,
guint np
);
guint (* get_size) (
NcmDataDist2d* dist2d
);
}
No description available.
Class members
dist2d_m2lnL_val: gdouble (* dist2d_m2lnL_val) ( NcmDataDist2d* dist2d, NcmMSet* mset, gdouble x, gdouble y )No description available.
inv_pdf: void (* inv_pdf) ( NcmDataDist2d* dist2d, NcmMSet* mset, gdouble u, gdouble v, gdouble* x, gdouble* y )No description available.
set_size: void (* set_size) ( NcmDataDist2d* dist2d, guint np )No description available.
get_size: guint (* get_size) ( NcmDataDist2d* dist2d )No description available.