Class
NumCosmoMathStatsDist1dEPDF
Description [src]
final class NumCosmoMath.StatsDist1dEPDF : NumCosmoMath.StatsDist1d
{
/* No available fields */
}
One dimensional probability distribution based on an EPDF.
Reconstruction of an arbitrary one dimensional probability distribution based on a Empirical Probability Distribution Function (EPDF).
Constructors
ncm_stats_dist1d_epdf_new
Creates a new EPDF object, it creates an interpolated PDF from the observations.
ncm_stats_dist1d_epdf_new_full
Creates a new EPDF object, it creates an interpolated PDF from the observations.
Functions
ncm_stats_dist1d_epdf_clear
Atomically decrements the reference count of epdf1d by one. If the reference count drops to 0,
all memory allocated by epdf1d is released. Set the pointer to NULL;.
Instance methods
ncm_stats_dist1d_epdf_add_obs
Adds a new observation x (weight 1.0) to the epdf1d updating
the internal approximation of the EPDF when necessary.
ncm_stats_dist1d_epdf_add_obs_weight
Adds a new observation x with weight w to the epdf1d updating
the internal approximation of the EPDF when necessary.
ncm_stats_dist1d_epdf_free
Atomically decrements the reference count of epdf1d by one. If the reference count drops to 0,
all memory allocated by epdf1d is released.
ncm_stats_dist1d_epdf_set_bw_type
Sets the bandwidth computation type to bw. The object
must be (re)prepared after the call to this method to be used.
ncm_stats_dist1d_epdf_set_h_fixed
Sets the fixed bandwidth to h_fixed. The object
must be (re)prepared after the call to this method to be used.
This value is used only if the bandwidth computation type is
NCM_STATS_DIST1D_EPDF_BW_FIXED.
ncm_stats_dist1d_epdf_set_max
Sets the upper bound for the distribution. It may be updated if a observation
with value larger than max is added.
ncm_stats_dist1d_epdf_set_min
Sets the lower bound for the distribution. It may be updated if a observation
with value smaller than min is added.
Methods inherited from NcmStatsDist1d (18)
ncm_stats_dist1d_eval_inv_pdf
Calculates the value of the random variable $x$ for which the cumulative distribution satisfy $\int_{x_i}^x\mathrm{d}x^\prime p(x^\prime) = u$.
ncm_stats_dist1d_eval_inv_pdf_tail
Calculates the value of the random variable $x$ for which the cumulative distribution satisfy $\int_{x}^{x_f}\mathrm{d}x^\prime p(x^\prime) = v$.
ncm_stats_dist1d_eval_m2lnp
Calculates the value of the $-2\ln(p(x))$ for the probability density. It can be unnormalized, the norma can be retrieved using ncm_stats_dist1d_eval_norma().
ncm_stats_dist1d_eval_mode
Calculates the mode of the distribution.
ncm_stats_dist1d_eval_norma
Calculates the norma of the distribution. If the probability density is already normalized it will return 1.0.
ncm_stats_dist1d_eval_p
Calculates the value of the probability density at x.
ncm_stats_dist1d_eval_pdf
Calculates the value of the probability of the interval [x_i, x].
ncm_stats_dist1d_free
Decreases the reference count of sd1.
ncm_stats_dist1d_gen
Generates a realization of the probability distribution.
ncm_stats_dist1d_get_compute_cdf
ncm_stats_dist1d_get_current_h
ncm_stats_dist1d_get_xf
ncm_stats_dist1d_get_xi
ncm_stats_dist1d_prepare
Prepares the object for calculations.
ncm_stats_dist1d_ref
Increases the reference count of sd1.
ncm_stats_dist1d_set_compute_cdf
Enable/Disable the computation of the CDF and inverse CDF
whenever compute_cdf is TRUE/FALSE.
ncm_stats_dist1d_set_xf
Sets the upper bound of the distribution $x_f$.
ncm_stats_dist1d_set_xi
Sets the lower bound of the distribution $x_i$.
Properties
Properties inherited from NcmStatsDist1d (7)
NumCosmoMath.StatsDist1d:abstol
NumCosmoMath.StatsDist1d:compute-cdf
NumCosmoMath.StatsDist1d:max-prob
NumCosmoMath.StatsDist1d:norma
NumCosmoMath.StatsDist1d:reltol
NumCosmoMath.StatsDist1d:xf
NumCosmoMath.StatsDist1d:xi
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.