Class
NumCosmoMathDataDist1d
Description [src]
abstract class NumCosmoMath.DataDist1d : NumCosmoMath.Data
{
/* No available fields */
}
Abstract class for a sample drawn from a one-dimensional distribution.
The data are NcmDataDist1d:n-points values $x_i$ (NcmDataDist1d:vector), each
drawn independently from a distribution with density $p(x)$ given the models in a
NcmMSet, and $-2\ln L = \sum_i -2\ln p(x_i)$.
Subclasses implement dist1d_m2lnL_val, which returns $-2\ln p(x)$ for one point, and, to resample, inv_pdf, which maps a uniform number $u \in [0, 1]$ to a draw of the distribution (the inverse of its cumulative distribution). The default methods abort with a message naming the class.
Properties
NumCosmoMath.DataDist1d: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 NumCosmoMathDataDist1dClass {
gdouble (* dist1d_m2lnL_val) (
NcmDataDist1d* dist1d,
NcmMSet* mset,
gdouble x
);
gdouble (* inv_pdf) (
NcmDataDist1d* dist1d,
NcmMSet* mset,
gdouble u
);
void (* set_size) (
NcmDataDist1d* dist1d,
guint np
);
guint (* get_size) (
NcmDataDist1d* dist1d
);
}
No description available.
Class members
dist1d_m2lnL_val: gdouble (* dist1d_m2lnL_val) ( NcmDataDist1d* dist1d, NcmMSet* mset, gdouble x )No description available.
inv_pdf: gdouble (* inv_pdf) ( NcmDataDist1d* dist1d, NcmMSet* mset, gdouble u )No description available.
set_size: void (* set_size) ( NcmDataDist1d* dist1d, guint np )No description available.
get_size: guint (* get_size) ( NcmDataDist1d* dist1d )No description available.