NcmDataPoisson

NcmDataPoisson — Abstract class for implementing poisson distributed data.

Functions

Properties

NcmVector * mean Read / Write
guint n-bins Read / Write / Construct

Types and Values

Object Hierarchy

    GEnum
    ╰── NcmDataPoissonType
    GObject
    ╰── NcmData
        ╰── NcmDataPoisson

Description

Class for implementing Poisson distributed data.

Functions

ncm_data_poisson_init_from_vector ()

void
ncm_data_poisson_init_from_vector (NcmDataPoisson *poisson,
                                   NcmVector *nodes,
                                   NcmVector *N);

Initializes a NcmDataPoisson from a vector of bin edges and a vector of counts.

Parameters

poisson

a NcmDataPoisson

 

nodes

bins edges

 

N

counts in each bin

 

ncm_data_poisson_init_zero ()

void
ncm_data_poisson_init_zero (NcmDataPoisson *poisson,
                            NcmVector *nodes);

Initializes a NcmDataPoisson with zero counts.

Parameters

poisson

a NcmDataPoisson

 

nodes

a NcmVector

 

ncm_data_poisson_init_from_binning ()

void
ncm_data_poisson_init_from_binning (NcmDataPoisson *poisson,
                                    NcmVector *nodes,
                                    NcmVector *x);

Initializes a NcmDataPoisson from a vector of bin edges and a vector of data to be binned.

Parameters

poisson

a NcmDataPoisson

 

nodes

bins edges

 

x

data to be binned

 

ncm_data_poisson_set_size ()

void
ncm_data_poisson_set_size (NcmDataPoisson *poisson,
                           guint nbins);

Sets the number of bins to nbins .

[virtual set_size]

Parameters

poisson

a NcmDataPoisson

 

nbins

number of bins.

 

ncm_data_poisson_get_size ()

guint
ncm_data_poisson_get_size (NcmDataPoisson *poisson);

Gets the data size.

[virtual get_size]

Parameters

poisson

a NcmDataPoisson

 

Returns

Data size.


ncm_data_poisson_get_sum ()

gdouble
ncm_data_poisson_get_sum (NcmDataPoisson *poisson);

Gets the sum of all bins.

Parameters

poisson

a NcmDataPoisson

 

Returns

Sum of all bins.


ncm_data_poisson_get_hist_vals ()

NcmVector *
ncm_data_poisson_get_hist_vals (NcmDataPoisson *poisson);

Gets the vector containing the bins values.

Parameters

poisson

a NcmDataPoisson

 

Returns

vector containing the bins values.

[transfer full]


ncm_data_poisson_get_hist_means ()

NcmVector *
ncm_data_poisson_get_hist_means (NcmDataPoisson *poisson,
                                 NcmMSet *mset);

Gets the vector containing the bins values.

Parameters

poisson

a NcmDataPoisson

 

mset

a NcmMSet

 

Returns

vector containing the bins values.

[transfer full]

Types and Values

NCM_TYPE_DATA_POISSON

#define NCM_TYPE_DATA_POISSON (ncm_data_poisson_get_type ())

enum NcmDataPoissonType

FIXME

Members

NCM_DATA_POISSON_INT

FIXME

 

struct NcmDataPoissonClass

struct NcmDataPoissonClass {
};

NcmDataPoisson

typedef struct _NcmDataPoisson NcmDataPoisson;

Property Details

The “mean” property

  “mean”                     NcmVector *

Data mean.

Owner: NcmDataPoisson

Flags: Read / Write


The “n-bins” property

  “n-bins”                   guint

Number of bins.

Owner: NcmDataPoisson

Flags: Read / Write / Construct

Default value: 0