Top |
NcmStatsDist1dEPDFBw | bandwidth | Read / Write / Construct |
double | h-fixed | Read / Write / Construct |
guint | max-obs | Read / Write / Construct Only |
guint | n-obs | Read |
double | outliers-threshold | Read / Write / Construct Only |
double | sd-min-scale | Read / Write / Construct Only |
Reconstruction of an arbitrary one dimensional probability distribution based on a Empirical Probability Distribution Function (EPDF).
NcmStatsDist1dEPDF * ncm_stats_dist1d_epdf_new_full (guint max_obs
,NcmStatsDist1dEPDFBw bw
,gdouble h_fixed
,gdouble sd_min_scale
);
Creates a new EPDF object, it creates an interpolated PDF from the observations.
NcmStatsDist1dEPDF *
ncm_stats_dist1d_epdf_new (gdouble sd_min_scale
);
Creates a new EPDF object, it creates an interpolated PDF from the observations.
NcmStatsDist1dEPDF *
ncm_stats_dist1d_epdf_ref (NcmStatsDist1dEPDF *epdf1d
);
Increases the reference count of epdf1d
by one.
void
ncm_stats_dist1d_epdf_free (NcmStatsDist1dEPDF *epdf1d
);
Atomically decrements the reference count of epdf1d
by one. If the reference count drops to 0,
all memory allocated by epdf1d
is released.
void
ncm_stats_dist1d_epdf_clear (NcmStatsDist1dEPDF **epdf1d
);
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;
void ncm_stats_dist1d_epdf_set_bw_type (NcmStatsDist1dEPDF *epdf1d
,NcmStatsDist1dEPDFBw bw
);
Sets the bandwidth computation type to bw
. The object
must be (re)prepared after the call to this method to be used.
NcmStatsDist1dEPDFBw
ncm_stats_dist1d_epdf_get_bw_type (NcmStatsDist1dEPDF *epdf1d
);
void ncm_stats_dist1d_epdf_set_h_fixed (NcmStatsDist1dEPDF *epdf1d
,gdouble 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.
gdouble
ncm_stats_dist1d_epdf_get_h_fixed (NcmStatsDist1dEPDF *epdf1d
);
void ncm_stats_dist1d_epdf_add_obs_weight (NcmStatsDist1dEPDF *epdf1d
,const gdouble x
,const gdouble w
);
Adds a new observation x
with weight w
to the epdf1d
updating
the internal approximation of the EPDF when necessary.
void ncm_stats_dist1d_epdf_add_obs (NcmStatsDist1dEPDF *epdf1d
,const gdouble x
);
Adds a new observation x
(weight 1.0) to the epdf1d
updating
the internal approximation of the EPDF when necessary.
void
ncm_stats_dist1d_epdf_reset (NcmStatsDist1dEPDF *epdf1d
);
Empty the object epdf1d
discarding all observations.
void ncm_stats_dist1d_epdf_set_min (NcmStatsDist1dEPDF *epdf1d
,const gdouble min
);
Sets the lower bound for the distribution. It may be updated if a observation
with value smaller than min
is added.
void ncm_stats_dist1d_epdf_set_max (NcmStatsDist1dEPDF *epdf1d
,const gdouble max
);
Sets the upper bound for the distribution. It may be updated if a observation
with value larger than max
is added.
gdouble
ncm_stats_dist1d_epdf_get_obs_mean (NcmStatsDist1dEPDF *epdf1d
);
Calculates the mean value of the observations.
“bandwidth”
property“bandwidth” NcmStatsDist1dEPDFBw
Bandwidth method.
Owner: NcmStatsDist1dEPDF
Flags: Read / Write / Construct
Default value: NCM_STATS_DIST1D_EPDF_BW_AUTO
“h-fixed”
property “h-fixed” double
Fixed bandwidth.
Owner: NcmStatsDist1dEPDF
Flags: Read / Write / Construct
Allowed values: [1e-05,100000]
Default value: 0.1
“max-obs”
property “max-obs” guint
Maximum observations before compacting.
Owner: NcmStatsDist1dEPDF
Flags: Read / Write / Construct Only
Allowed values: >= 10
Default value: 100000
“n-obs”
property “n-obs” guint
Number of observations.
Owner: NcmStatsDist1dEPDF
Flags: Read
Default value: 0
“outliers-threshold”
property “outliers-threshold” double
How many sigmas to consider an outlier.
Owner: NcmStatsDist1dEPDF
Flags: Read / Write / Construct Only
Allowed values: [1,1000]
Default value: 20