Top | ![]() |
![]() |
![]() |
![]() |
Functions
Functions
ncm_stats_dist1d_ref ()
NcmStatsDist1d *
ncm_stats_dist1d_ref (NcmStatsDist1d *sd1
);
Increase the reference count of sd1
.
ncm_stats_dist1d_free ()
void
ncm_stats_dist1d_free (NcmStatsDist1d *sd1
);
Decrease the reference count of sd1
.
ncm_stats_dist1d_clear ()
void
ncm_stats_dist1d_clear (NcmStatsDist1d **sd1
);
Decrease the reference count of *sd1
and sets the pointer *sd1
to NULL.
ncm_stats_dist1d_prepare ()
void
ncm_stats_dist1d_prepare (NcmStatsDist1d *sd1
);
Prepare the object for calculations.
ncm_stats_dist1d_p ()
gdouble ncm_stats_dist1d_p (NcmStatsDist1d *sd1
,gdouble x
);
Calculates the value of the probability density at x
.
It can be unnormalized, the norma can be retrieved using
ncm_stats_dist1d_norma()
.
ncm_stats_dist1d_m2lnp ()
gdouble ncm_stats_dist1d_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_norma()
.
ncm_stats_dist1d_pdf ()
gdouble ncm_stats_dist1d_pdf (NcmStatsDist1d *sd1
,gdouble x
);
Calculates the value of the probability of the interval [x_i, x
].
ncm_stats_dist1d_norma ()
gdouble
ncm_stats_dist1d_norma (NcmStatsDist1d *sd1
);
Calculates the norma of the distribution. If the probability density is already normalized it will return 1.0.
ncm_stats_dist1d_inv_pdf ()
gdouble ncm_stats_dist1d_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$.
ncm_stats_dist1d_mode ()
gdouble
ncm_stats_dist1d_mode (NcmStatsDist1d *sd1
);
Calculates the mode of the distribution.
Property Details
The “abstol”
property
“abstol” gdouble
Absolute tolerance on the random variables.
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0
The “norma”
property
“norma” gdouble
Distribution norma.
Flags: Read
Allowed values: >= 0
Default value: 0
The “reltol”
property
“reltol” gdouble
relative tolerance.
Flags: Read / Write / Construct
Allowed values: [0,1]
Default value: 1e-13