NcmDataDist2d

NcmDataDist2d — Abstract class for two-variables distribution data.

Functions

Properties

NcmMatrix * matrix Read / Write
guint n-points Read / Write / Construct

Types and Values

Object Hierarchy

    GObject
    ╰── NcmData
        ╰── NcmDataDist2d
            ╰── NcDataBaoEmpiricalFit2d

Description

This object is designate to data that is described by a bivariate and arbitrary distribution.

Functions

ncm_data_dist2d_set_size ()

void
ncm_data_dist2d_set_size (NcmDataDist2d *dist2d,
                          guint np);

Sets the data size to np .

[virtual set_size]

Parameters

dist2d

a NcmDataDist2d

 

np

data size.

 

ncm_data_dist2d_get_size ()

guint
ncm_data_dist2d_get_size (NcmDataDist2d *dist2d);

Gets the data size.

[virtual get_size]

Parameters

dist2d

a NcmDataDist2d

 

Returns

Data size.


ncm_data_dist2d_get_data ()

NcmMatrix *
ncm_data_dist2d_get_data (NcmDataDist2d *dist2d);

Gets the data NcmMatrix.

Parameters

dist2d

a NcmDataDist2d

 

Returns

Data matrix.

[transfer full]


ncm_data_dist2d_inv_pdf ()

void
ncm_data_dist2d_inv_pdf (NcmDataDist2d *dist2d,
                         NcmMSet *mset,
                         gdouble u,
                         gdouble v,
                         gdouble *x,
                         gdouble *y);

Generates a random number from the inverse of the pdf.

[virtual inv_pdf]

Parameters

dist2d

a NcmDataDist2d

 

mset

a NcmMSet

 

u

a random number in the range [0,1]

 

v

a random number in the range [0,1]

 

x

generated random number.

[out]

y

generated random number.

[out]

Types and Values

NCM_TYPE_DATA_DIST2D

#define NCM_TYPE_DATA_DIST2D (ncm_data_dist2d_get_type ())

struct NcmDataDist2dClass

struct NcmDataDist2dClass {
};

NcmDataDist2d

typedef struct _NcmDataDist2d NcmDataDist2d;

Property Details

The “matrix” property

  “matrix”                   NcmMatrix *

Data matrix.

Owner: NcmDataDist2d

Flags: Read / Write


The “n-points” property

  “n-points”                 guint

Data sample size.

Owner: NcmDataDist2d

Flags: Read / Write / Construct

Default value: 0