NcmStatsDistNdKDEGauss

NcmStatsDistNdKDEGauss — An N dimensional probability distributions using gaussian KDE

Properties

gboolean LOOCV Read / Write / Construct
guint N Read
guint nearPD-maxiter Read / Write / Construct
gdouble over-smooth Read / Write / Construct

Object Hierarchy

    GObject
    ╰── NcmStatsDistNd
        ╰── NcmStatsDistNdKDEGauss

Description

An arbitrary N dimensional probability distribution using gaussian KDE.

Functions

ncm_stats_dist_nd_kde_gauss_new ()

NcmStatsDistNdKDEGauss *
ncm_stats_dist_nd_kde_gauss_new (const guint dim,
                                 const gboolean LOOCV);

Creates a new NcmStatsDistNdKDEGauss object with sample dimension dim .

Parameters

dim

sample space dimension

 

LOOCV

whether to use LOOCV to calibrate the bandwidth

 

Returns

a new NcmStatsDistNdKDEGauss.


ncm_stats_dist_nd_kde_gauss_ref ()

NcmStatsDistNdKDEGauss *
ncm_stats_dist_nd_kde_gauss_ref (NcmStatsDistNdKDEGauss *dndg);

Increase the reference of stats_dist_nd_kde_gauss by one.

Parameters

Returns

stats_dist_nd_kde_gauss .

[transfer full]


ncm_stats_dist_nd_kde_gauss_free ()

void
ncm_stats_dist_nd_kde_gauss_free (NcmStatsDistNdKDEGauss *dndg);

Decrease the reference count of stats_dist_nd_kde_gauss by one.

Parameters


ncm_stats_dist_nd_kde_gauss_clear ()

void
ncm_stats_dist_nd_kde_gauss_clear (NcmStatsDistNdKDEGauss **dndg);

Decrease the reference count of stats_dist_nd_kde_gauss by one, and sets the pointer *stats_dist_nd_kde_gauss to NULL.

Parameters


ncm_stats_dist_nd_kde_gauss_set_over_smooth ()

void
ncm_stats_dist_nd_kde_gauss_set_over_smooth
                               (NcmStatsDistNdKDEGauss *dndg,
                                const gdouble over_smooth);

Sets the over-smooth factor to over_smooth .

Parameters

dndg

a NcmStatsDistNdKDEGauss

 

over_smooth

the over-smooth factor

 

ncm_stats_dist_nd_kde_gauss_get_over_smooth ()

gdouble
ncm_stats_dist_nd_kde_gauss_get_over_smooth
                               (NcmStatsDistNdKDEGauss *dndg);

Parameters

Returns

the over-smooth factor.


ncm_stats_dist_nd_kde_gauss_set_LOOCV_bandwidth_adj ()

void
ncm_stats_dist_nd_kde_gauss_set_LOOCV_bandwidth_adj
                               (NcmStatsDistNdKDEGauss *dndg,
                                gboolean LOOCV);

Sets whether to use LOOCV to adjust the bandwidth.

Parameters

dndg

a NcmStatsDistNdKDEGauss

 

LOOCV

whether to use LOOCV to adjust the bandwidth

 

ncm_stats_dist_nd_kde_gauss_get_LOOCV_bandwidth_adj ()

gboolean
ncm_stats_dist_nd_kde_gauss_get_LOOCV_bandwidth_adj
                               (NcmStatsDistNdKDEGauss *dndg);

Parameters

Returns

true if the objects uses LOOCV to adjust the bandwidth.


ncm_stats_dist_nd_kde_gauss_add_obs_weight ()

void
ncm_stats_dist_nd_kde_gauss_add_obs_weight
                               (NcmStatsDistNdKDEGauss *dndg,
                                NcmVector *y,
                                const gdouble w);

Adds a new point y to the sample with weight w .

Parameters

dndg

a NcmStatsDistNdKDEGauss

 

y

a NcmVector

 

w

weight

 

ncm_stats_dist_nd_kde_gauss_add_obs ()

void
ncm_stats_dist_nd_kde_gauss_add_obs (NcmStatsDistNdKDEGauss *dndg,
                                     NcmVector *y);

Adds a new point y to the sample with weight 1.0.

Parameters

Types and Values

Property Details

The “LOOCV” property

  “LOOCV”                    gboolean

Leave one out cross validation.

Flags: Read / Write / Construct

Default value: FALSE


The “N” property

  “N”                        guint

sample size.

Flags: Read

Default value: 0


The “nearPD-maxiter” property

  “nearPD-maxiter”           guint

Maximum number of iterations in the nearPD call.

Flags: Read / Write / Construct

Allowed values: >= 1

Default value: 200


The “over-smooth” property

  “over-smooth”              gdouble

Oversmooth distribution.

Flags: Read / Write / Construct

Allowed values: >= 1e-05

Default value: 1