Matter Fluctuation Variance

Matter Fluctuation Variance — FIXME

Synopsis

enum                NcMatterVarStrategy;
struct              NcMatterVarClass;
struct              NcMatterVar;
NcMatterVar *       nc_matter_var_new                   (NcMatterVarStrategy vs,
                                                         NcWindow *wp,
                                                         NcTransferFunc *tf);
NcMatterVar *       nc_matter_var_copy                  (NcMatterVar *vp);
void                nc_matter_var_free                  (NcMatterVar *vp);
void                nc_matter_var_clear                 (NcMatterVar **vp);
void                nc_matter_var_prepare               (NcMatterVar *vp,
                                                         NcHICosmo *model);
gdouble             nc_matter_var_var0                  (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnR);
gdouble             nc_matter_var_dlnvar0_dR            (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnR);
gdouble             nc_matter_var_dlnvar0_dlnR          (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnR);
gdouble             nc_matter_var_mass_to_R             (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble M);
gdouble             nc_matter_var_R_to_mass             (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble R);
gdouble             nc_matter_var_lnM_to_lnR            (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnM);
gdouble             nc_matter_var_lnR_to_lnM            (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnR);
gdouble             nc_matter_var_integrand_over_window2
                                                        (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble k);
gdouble             nc_matter_var_spectral_moment_over_growth2
                                                        (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gint n);
gdouble             nc_matter_var_spectral_moment_over_growth2_tophat
                                                        (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gint n);
gdouble             nc_matter_var_spectral_moment_over_growth2_gaussian
                                                        (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gint n);
gdouble             nc_matter_var_dsigma0_dR            (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnR);
gdouble             nc_matter_var_sigma8_sqrtvar0       (NcMatterVar *vp,
                                                         NcHICosmo *model);

Object Hierarchy

  GObject
   +----NcMatterVar

Properties

  "strategy"                 NcMatterVarStrategy   : Read / Write / Construct Only
  "transfer"                 NcTransferFunc*       : Read / Write / Construct Only
  "window"                   NcWindow*             : Read / Write / Construct Only

Description

FIXME

Details

enum NcMatterVarStrategy

typedef enum {
  NC_MATTER_VAR_NUMINT,
  NC_MATTER_VAR_SPLINEINT,
  NC_MATTER_VAR_FFT,
} NcMatterVarStrategy;

FIXME

NC_MATTER_VAR_NUMINT

Compute variance with numerical integration.

NC_MATTER_VAR_SPLINEINT

Compute variance with spline.

NC_MATTER_VAR_FFT

Compute using fft.

struct NcMatterVarClass

struct NcMatterVarClass {
};

struct NcMatterVar

struct NcMatterVar;

nc_matter_var_new ()

NcMatterVar *       nc_matter_var_new                   (NcMatterVarStrategy vs,
                                                         NcWindow *wp,
                                                         NcTransferFunc *tf);

This function allocates memory for a new NcMatterVar object and sets its properties to the values from the input arguments.

vs :

a NcMatterVarStrategy.

wp :

a NcWindow.

tf :

a NcTransferFunc.

Returns :

A new NcMatterVar.

nc_matter_var_copy ()

NcMatterVar *       nc_matter_var_copy                  (NcMatterVar *vp);

This function duplicates the NcMatterVar object setting the same values of the original propertities.

vp :

a NcMatterVar.

Returns :

A new NcMatterVar. [transfer full]

nc_matter_var_free ()

void                nc_matter_var_free                  (NcMatterVar *vp);

Atomically decrements the reference count of vp by one. If the reference count drops to 0, all memory allocated by vp is released.

vp :

a NcMatterVar.

nc_matter_var_clear ()

void                nc_matter_var_clear                 (NcMatterVar **vp);

Atomically decrements the reference count of vp by one. If the reference count drops to 0, all memory allocated by vp is released. Set pointer to NULL.

vp :

a NcMatterVar.

nc_matter_var_prepare ()

void                nc_matter_var_prepare               (NcMatterVar *vp,
                                                         NcHICosmo *model);

FIXME

vp :

a NcMatterVar.

model :

a NcHICosmo.

nc_matter_var_var0 ()

gdouble             nc_matter_var_var0                  (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnR);

This function returns the variance of the density contrast at redshift \f$ z = 0 \f$ computed at scale R FIXME

vp :

a NcMatterVar.

model :

a NcHICosmo.

lnR :

logarithm base e of the radius.

Returns :

a gdouble which is the variance \f$ \sigma^2 (R, z = 0) \f$.

nc_matter_var_dlnvar0_dR ()

gdouble             nc_matter_var_dlnvar0_dR            (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnR);

FIXME

vp :

a NcMatterVar.

model :

a NcHICosmo.

lnR :

logarithm base e of the radius.

Returns :

FIXME

nc_matter_var_dlnvar0_dlnR ()

gdouble             nc_matter_var_dlnvar0_dlnR          (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnR);

FIXME

vp :

a NcMatterVar.

model :

a NcHICosmo.

lnR :

logarithm base e of the radius.

Returns :

FIXME

nc_matter_var_mass_to_R ()

gdouble             nc_matter_var_mass_to_R             (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble M);

FIXME

vp :

a NcMatterVar.

model :

a NcHICosmo.

M :

mass enclosed in the volume specified by the window function.

Returns :

FIXME

nc_matter_var_R_to_mass ()

gdouble             nc_matter_var_R_to_mass             (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble R);

FIXME mass enclosed in the volume specified by the window function

vp :

a NcMatterVar.

model :

a NcHICosmo.

R :

radius.

Returns :

FIXME

nc_matter_var_lnM_to_lnR ()

gdouble             nc_matter_var_lnM_to_lnR            (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnM);

FIXME

vp :

a NcMatterVar.

model :

a NcHICosmo.

lnM :

logarithm base e of the mass enclosed in the volume specified by the window function.

Returns :

FIXME

nc_matter_var_lnR_to_lnM ()

gdouble             nc_matter_var_lnR_to_lnM            (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnR);

FIXME mass enclosed in the volume specified by the window function

vp :

a NcMatterVar.

model :

a NcHICosmo.

lnR :

logarithm base e of the radius.

Returns :

FIXME

nc_matter_var_integrand_over_window2 ()

gdouble             nc_matter_var_integrand_over_window2
                                                        (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble k);

FIXME

vp :

a NcMatterVar.

model :

a NcHICosmo.

k :

FIXME

Returns :

FIXME

nc_matter_var_spectral_moment_over_growth2 ()

gdouble             nc_matter_var_spectral_moment_over_growth2
                                                        (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gint n);

FIXME \frac{\sigma^2}{D^2}

vp :

a NcMatterVar.

model :

a NcHICosmo.

n :

FIXME

Returns :

FIXME

nc_matter_var_spectral_moment_over_growth2_tophat ()

gdouble             nc_matter_var_spectral_moment_over_growth2_tophat
                                                        (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gint n);

FIXME

vp :

a NcMatterVar.

model :

a NcHICosmo.

n :

FIXME

Returns :

FIXME

nc_matter_var_spectral_moment_over_growth2_gaussian ()

gdouble             nc_matter_var_spectral_moment_over_growth2_gaussian
                                                        (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gint n);

FIXME

vp :

a NcMatterVar.

model :

a NcHICosmo.

n :

FIXME

Returns :

FIXME

nc_matter_var_dsigma0_dR ()

gdouble             nc_matter_var_dsigma0_dR            (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnR);

nc_matter_var_sigma8_sqrtvar0 ()

gdouble             nc_matter_var_sigma8_sqrtvar0       (NcMatterVar *vp,
                                                         NcHICosmo *model);

Property Details

The "strategy" property

  "strategy"                 NcMatterVarStrategy   : Read / Write / Construct Only

Strategy.

Default value: NC_MATTER_VAR_FFT


The "transfer" property

  "transfer"                 NcTransferFunc*       : Read / Write / Construct Only

This property keeps the transferfunc object.


The "window" property

  "window"                   NcWindow*             : Read / Write / Construct Only

This property keeps the window object.