Class

NumCosmoMathStatsDist1d

Description [src]

abstract class NumCosmoMath.StatsDist1d : GObject.Object
{
  /* No available fields */
}

Base class for implementing one dimensional probability distributions.

Abstract class to reconstruct an arbitrary one dimensional probability distribution.

Ancestors

Functions

ncm_stats_dist1d_clear

Decreases the reference count of sd1 and sets the pointer sd1 to NULL.

Instance methods

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
No description available.

ncm_stats_dist1d_get_current_h
No description available.

ncm_stats_dist1d_get_xf
No description available.

ncm_stats_dist1d_get_xi
No description available.

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$.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmoMath.StatsDist1d:abstol
No description available.

NumCosmoMath.StatsDist1d:compute-cdf
No description available.

NumCosmoMath.StatsDist1d:max-prob
No description available.

NumCosmoMath.StatsDist1d:norma
No description available.

NumCosmoMath.StatsDist1d:reltol
No description available.

NumCosmoMath.StatsDist1d:xf
No description available.

NumCosmoMath.StatsDist1d:xi
No description available.

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 NumCosmoMathStatsDist1dClass {
  gdouble (* p) (
    NcmStatsDist1d* sd1,
    gdouble x
  );
  gdouble (* m2lnp) (
    NcmStatsDist1d* sd1,
    gdouble x
  );
  void (* prepare) (
    NcmStatsDist1d* sd1
  );
  gdouble (* get_current_h) (
    NcmStatsDist1d* sd1
  );
  
}

No description available.

Class members
p: gdouble (* p) ( NcmStatsDist1d* sd1, gdouble x )

No description available.

m2lnp: gdouble (* m2lnp) ( NcmStatsDist1d* sd1, gdouble x )

No description available.

prepare: void (* prepare) ( NcmStatsDist1d* sd1 )

No description available.

get_current_h: gdouble (* get_current_h) ( NcmStatsDist1d* sd1 )

No description available.

Virtual methods

NumCosmoMath.StatsDist1dClass.m2lnp
No description available.

NumCosmoMath.StatsDist1dClass.p
No description available.

NumCosmoMath.StatsDist1dClass.prepare

Prepares the object for calculations.