NcmStatsDist1dEPDF

NcmStatsDist1dEPDF — One dimensional probability distribution based on an EPDF.

Properties

guint max-obs Read / Write / Construct Only
guint n-obs Read
gdouble outliers-threshold Read / Write / Construct Only
gdouble sd-min-scale Read / Write / Construct Only
gdouble sd-scale Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── NcmStatsDist1d
        ╰── NcmStatsDist1dEPDF

Description

Empirical Probability Distribution Function (EPDF).

Functions

ncm_stats_dist1d_epdf_new ()

NcmStatsDist1dEPDF *
ncm_stats_dist1d_epdf_new (guint max_obs,
                           gdouble sd_scale,
                           gdouble sd_min_scale);

Creates a new EPDF object, it creates an interpolated PDF from the observations.

Parameters

max_obs

maximum saved observations

 

sd_scale

standard deviation scale for basis functions

 

sd_min_scale

scale of the minimum distance

 

Returns

a new NcmStatsDist1dEPDF


ncm_stats_dist1d_epdf_add_obs ()

void
ncm_stats_dist1d_epdf_add_obs (NcmStatsDist1dEPDF *epdf1d,
                               gdouble x);

Adds a new observation x to the epdf1d updating the internal approximation of the EPDF when necessary.

Parameters

epdf1d

a NcmStatsDist1dEPDF

 

x

an observation

 

ncm_stats_dist1d_epdf_reset ()

void
ncm_stats_dist1d_epdf_reset (NcmStatsDist1dEPDF *epdf1d);

Empty the object epdf1d discarding all observations.

Parameters

epdf1d

a NcmStatsDist1dEPDF

 

ncm_stats_dist1d_epdf_get_obs_mean ()

gdouble
ncm_stats_dist1d_epdf_get_obs_mean (NcmStatsDist1dEPDF *epdf1d);

Calculates the mean value of the observations.

Parameters

epdf1d

a NcmStatsDist1dEPDF

 

Returns

the mean value.

Types and Values

Property Details

The “max-obs” property

  “max-obs”                  guint

Maximum saved observations.

Flags: Read / Write / Construct Only

Allowed values: >= 10

Default value: 1000


The “n-obs” property

  “n-obs”                    guint

Number of observations.

Flags: Read

Default value: 0


The “outliers-threshold” property

  “outliers-threshold”       gdouble

How many sigmas to consider an outlier.

Flags: Read / Write / Construct Only

Allowed values: [1,1000]

Default value: 20


The “sd-min-scale” property

  “sd-min-scale”             gdouble

Percentage of the standard deviation to use as minimum distance.

Flags: Read / Write / Construct Only

Allowed values: [1e-20,1e+20]

Default value: 0.01


The “sd-scale” property

  “sd-scale”                 gdouble

Percentage of the standard deviation to use.

Flags: Read / Write / Construct Only

Allowed values: [1e-05,100000]

Default value: 0.1