Top |
NcmStatsDist1dNcmStatsDist1d — Abstract class for implementing one dimensional probability distributions |
NcmStatsDist1d * | ncm_stats_dist1d_ref () |
void | ncm_stats_dist1d_free () |
void | ncm_stats_dist1d_clear () |
void | ncm_stats_dist1d_prepare () |
gdouble | ncm_stats_dist1d_get_current_h () |
void | ncm_stats_dist1d_set_compute_cdf () |
gboolean | ncm_stats_dist1d_get_compute_cdf () |
void | ncm_stats_dist1d_set_xi () |
void | ncm_stats_dist1d_set_xf () |
gdouble | ncm_stats_dist1d_get_xi () |
gdouble | ncm_stats_dist1d_get_xf () |
gdouble | ncm_stats_dist1d_eval_p () |
gdouble | ncm_stats_dist1d_eval_m2lnp () |
gdouble | ncm_stats_dist1d_eval_pdf () |
gdouble | ncm_stats_dist1d_eval_norma () |
gdouble | ncm_stats_dist1d_eval_inv_pdf () |
gdouble | ncm_stats_dist1d_eval_inv_pdf_tail () |
gdouble | ncm_stats_dist1d_gen () |
gdouble | ncm_stats_dist1d_eval_mode () |
NcmStatsDist1d *
ncm_stats_dist1d_ref (NcmStatsDist1d *sd1
);
Increases the reference count of sd1
.
void
ncm_stats_dist1d_free (NcmStatsDist1d *sd1
);
Decreases the reference count of sd1
.
void
ncm_stats_dist1d_clear (NcmStatsDist1d **sd1
);
Decreases the reference count of *sd1
and sets the pointer *sd1
to NULL.
void
ncm_stats_dist1d_prepare (NcmStatsDist1d *sd1
);
Prepares the object for calculations.
gdouble
ncm_stats_dist1d_get_current_h (NcmStatsDist1d *sd1
);
[virtual get_current_h]
void ncm_stats_dist1d_set_compute_cdf (NcmStatsDist1d *sd1
,gboolean compute_cdf
);
Enable/Disable the computation of the CDF and inverse CDF
whenever compute_cdf
is TRUE/FALSE.
gboolean
ncm_stats_dist1d_get_compute_cdf (NcmStatsDist1d *sd1
);
void ncm_stats_dist1d_set_xi (NcmStatsDist1d *sd1
,gdouble xi
);
Sets the lower bound of the distribution $x_i$.
void ncm_stats_dist1d_set_xf (NcmStatsDist1d *sd1
,gdouble xf
);
Sets the upper bound of the distribution $x_f$.
gdouble ncm_stats_dist1d_eval_p (NcmStatsDist1d *sd1
,gdouble x
);
Calculates the value of the probability density at x
.
gdouble ncm_stats_dist1d_eval_m2lnp (NcmStatsDist1d *sd1
,gdouble x
);
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()
.
gdouble ncm_stats_dist1d_eval_pdf (NcmStatsDist1d *sd1
,gdouble x
);
Calculates the value of the probability of the interval [x_i, x
].
gdouble
ncm_stats_dist1d_eval_norma (NcmStatsDist1d *sd1
);
Calculates the norma of the distribution. If the probability density is already normalized it will return 1.0.
gdouble ncm_stats_dist1d_eval_inv_pdf (NcmStatsDist1d *sd1
,gdouble u
);
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$.
gdouble ncm_stats_dist1d_eval_inv_pdf_tail (NcmStatsDist1d *sd1
,gdouble v
);
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$.
gdouble ncm_stats_dist1d_gen (NcmStatsDist1d *sd1
,NcmRNG *rng
);
Generates a realization of the probability distribution.
gdouble
ncm_stats_dist1d_eval_mode (NcmStatsDist1d *sd1
);
Calculates the mode of the distribution.
“abstol”
property “abstol” double
Absolute tolerance on the random variables.
Owner: NcmStatsDist1d
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0
“compute-cdf”
property “compute-cdf” gboolean
Whether to compute CDF and inverse CDF.
Owner: NcmStatsDist1d
Flags: Read / Write / Construct
Default value: TRUE
“max-prob”
property “max-prob” double
Maximal probability considered.
Owner: NcmStatsDist1d
Flags: Read / Write / Construct
Allowed values: [0,1]
Default value: 1
“norma”
property “norma” double
Distribution norma.
Owner: NcmStatsDist1d
Flags: Read
Allowed values: >= 0
Default value: 0
“reltol”
property “reltol” double
relative tolerance.
Owner: NcmStatsDist1d
Flags: Read / Write / Construct
Allowed values: [0,1]
Default value: 1e-14