NcDataBaoEmpiricalFit

NcDataBaoEmpiricalFit — Baryon oscillation data -- $D_V / r_s$ empirical likelihood.

Functions

Properties

double Dv-fiduc Read / Write / Construct
NcDistance * dist Read / Write
NcmSpline * m2lnp Read / Write / Construct
double rs-fiduc Read / Write / Construct
double z Read / Write / Construct

Object Hierarchy

    GObject
    ╰── NcmData
        ╰── NcmDataDist1d
            ╰── NcDataBaoEmpiricalFit

Description

This object implements the BAO data when its likelihood function is provided, e.g., Ross et al. (2015).

The data is stored in a NcmSpline object, which is used to calculate the likelihood function. The spline must be provided in the constructor.

Functions

nc_data_bao_empirical_fit_new ()

NcDataBaoEmpiricalFit *
nc_data_bao_empirical_fit_new (NcmSpline *m2lnp,
                               gdouble Dv_fiduc,
                               gdouble rs_fiduc,
                               gdouble z);

Creates a new NcDataBaoEmpiricalFit.

Parameters

m2lnp

a NcmSpline containing $-2\ln (p)$

 

Dv_fiduc

fiducial $D_V$

 

rs_fiduc

fiducial $r_s$

 

z

data redshift

 

Returns

the newly created NcDataBaoEmpiricalFit.


nc_data_bao_empirical_fit_new_from_file ()

NcDataBaoEmpiricalFit *
nc_data_bao_empirical_fit_new_from_file
                               (const gchar *filename);

Creates a new NcDataBaoEmpiricalFit from filename .

Parameters

filename

file containing a serialized NcDataBaoEmpiricalFit.

 

Returns

the newly created NcDataBaoEmpiricalFit.

[transfer full]


nc_data_bao_empirical_fit_new_from_id ()

NcDataBaoEmpiricalFit *
nc_data_bao_empirical_fit_new_from_id (NcDistance *dist,
                                       NcDataBaoId id);

Creates a new NcDataBaoEmpiricalFit from id .

Parameters

dist

a NcDistance

 

id

a NcDataBaoId

 

Returns

the newly created NcDataBaoEmpiricalFit.

[transfer full]


nc_data_bao_empirical_fit_get_mode ()

gdouble
nc_data_bao_empirical_fit_get_mode (NcDataBaoEmpiricalFit *bao_ef);

Calculates the mode of the empirical distribution.

Parameters

bao_ef

a NcDataBaoEmpiricalFit

 

Returns

the mode of the distribution.


nc_data_bao_empirical_fit_get_alpha ()

gdouble
nc_data_bao_empirical_fit_get_alpha (NcDataBaoEmpiricalFit *bao_ef,
                                     NcmMSet *mset);

Calculates value of $\alpha$ given a NcmMSet.

Parameters

bao_ef

a NcDataBaoEmpiricalFit

 

mset

a NcmMSet

 

Returns

$\alpha$


nc_data_bao_empirical_fit_set_dist ()

void
nc_data_bao_empirical_fit_set_dist (NcDataBaoEmpiricalFit *bao_ef,
                                    NcDistance *dist);

Sets the distance object.

Parameters

bao_ef

a NcDataBaoEmpiricalFit

 

dist

a NcDistance

 

Property Details

The “Dv-fiduc” property

  “Dv-fiduc”                 double

Dv fiducial.

Owner: NcDataBaoEmpiricalFit

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 0


The “dist” property

  “dist”                     NcDistance *

Distance object.

Owner: NcDataBaoEmpiricalFit

Flags: Read / Write


The “m2lnp” property

  “m2lnp”                    NcmSpline *

Empirical m2lnp.

Owner: NcDataBaoEmpiricalFit

Flags: Read / Write / Construct


The “rs-fiduc” property

  “rs-fiduc”                 double

r_s fiducial.

Owner: NcDataBaoEmpiricalFit

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 0


The “z” property

  “z”                        double

Redshift.

Owner: NcDataBaoEmpiricalFit

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 0