Mass Function

Mass Function — FIXME

Synopsis

struct              NcMassFunction;
struct              NcMassFunctionClass;
enum                NcMassFunctionSplineOptimize;
void                nc_mass_function_alpha_eff          (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnM,
                                                         gdouble *a_eff_ptr);
void                nc_mass_function_clear              (NcMassFunction **mfp);
NcMassFunction *    nc_mass_function_copy               (NcMassFunction *mfp);
gdouble             nc_mass_function_d2n_dzdlnm         (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnM,
                                                         gdouble z);
gdouble             nc_mass_function_dn_M1_to_M2_dv     (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble M1,
                                                         gdouble M2,
                                                         gdouble z);
gdouble             nc_mass_function_dn_M_to_inf_dv     (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble M,
                                                         gdouble z);
gdouble             nc_mass_function_dn_dlnm            (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnM,
                                                         gdouble z);
gdouble             nc_mass_function_dn_dz              (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnMl,
                                                         gdouble lnMu,
                                                         gdouble z,
                                                         gboolean spline);
gdouble             nc_mass_function_dv_dzdomega        (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble z);
void                nc_mass_function_free               (NcMassFunction *mfp);
gdouble             nc_mass_function_n                  (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnMl,
                                                         gdouble lnMu,
                                                         gdouble zl,
                                                         gdouble zu,
                                                         NcMassFunctionSplineOptimize spline);
NcMassFunction *    nc_mass_function_new                (NcDistance *dist,
                                                         NcMatterVar *vp,
                                                         NcGrowthFunc *gf,
                                                         NcMultiplicityFunc *mulf);
void                nc_mass_function_prepare            (NcMassFunction *mfp,
                                                         NcHICosmo *model);
void                nc_mass_function_prepare_if_needed  (NcMassFunction *mfp,
                                                         NcHICosmo *model);
void                nc_mass_function_set_eval_limits    (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnMi,
                                                         gdouble lnMf,
                                                         gdouble zi,
                                                         gdouble zf);
void                nc_mass_function_sigma              (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnM,
                                                         gdouble z,
                                                         gdouble *dn_dlnM_ptr,
                                                         gdouble *sigma_ptr);

Object Hierarchy

  GObject
   +----NcMassFunction

Properties

  "distance"                 NcDistance*           : Read / Write / Construct Only
  "growth"                   NcGrowthFunc*         : Read / Write / Construct Only
  "multiplicity"             NcMultiplicityFunc*   : Read / Write / Construct Only
  "variance"                 NcMatterVar*          : Read / Write / Construct Only

Description

FIXME

Details

struct NcMassFunction

struct NcMassFunction;

struct NcMassFunctionClass

struct NcMassFunctionClass {
};

enum NcMassFunctionSplineOptimize

typedef enum {
  NC_MASS_FUNCTION_SPLINE_NONE = 0,
  NC_MASS_FUNCTION_SPLINE_LNM,
  NC_MASS_FUNCTION_SPLINE_Z,
} NcMassFunctionSplineOptimize;

FIXME

NC_MASS_FUNCTION_SPLINE_NONE

FIXME

NC_MASS_FUNCTION_SPLINE_LNM

FIXME

NC_MASS_FUNCTION_SPLINE_Z

FIXME

nc_mass_function_alpha_eff ()

void                nc_mass_function_alpha_eff          (NcMatterVar *vp,
                                                         NcHICosmo *model,
                                                         gdouble lnM,
                                                         gdouble *a_eff_ptr);

FIXME

vp :

a NcMatterVar.

model :

a NcHICosmo.

lnM :

logarithm base e of mass.

a_eff_ptr :

FIXME

nc_mass_function_clear ()

void                nc_mass_function_clear              (NcMassFunction **mfp);

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

mfp :

a NcMassFunction.

nc_mass_function_copy ()

NcMassFunction *    nc_mass_function_copy               (NcMassFunction *mfp);

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

mfp :

a NcMassFunction.

Returns :

A new NcMassFunction. [transfer full]

nc_mass_function_d2n_dzdlnm ()

gdouble             nc_mass_function_d2n_dzdlnm         (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnM,
                                                         gdouble z);

FIXME

mfp :

a NcMassFunction.

model :

a NcHICosmo.

lnM :

logarithm base e of mass.

z :

redshift.

Returns :

FIXME

nc_mass_function_dn_M1_to_M2_dv ()

gdouble             nc_mass_function_dn_M1_to_M2_dv     (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble M1,
                                                         gdouble M2,
                                                         gdouble z);

nc_mass_function_dn_M_to_inf_dv ()

gdouble             nc_mass_function_dn_M_to_inf_dv     (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble M,
                                                         gdouble z);

nc_mass_function_dn_dlnm ()

gdouble             nc_mass_function_dn_dlnm            (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnM,
                                                         gdouble z);

This function computes the comoving number density of dark matter halos at redshift z and mass M.

mfp :

a NcMassFunction.

model :

a NcHICosmo.

lnM :

logarithm base e of mass.

z :

redshift.

Returns :

dn/dlnM.

nc_mass_function_dn_dz ()

gdouble             nc_mass_function_dn_dz              (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnMl,
                                                         gdouble lnMu,
                                                         gdouble z,
                                                         gboolean spline);

FIXME

mfp :

a NcMassFunction.

model :

a NcHICosmo.

lnMl :

logarithm base e of mass, lower threshold.

lnMu :

logarithm base e of mass, upper threshold.

z :

redshift.

spline :

Whenever to create an intermediary spline of the mass integration.

Returns :

FIXME

nc_mass_function_dv_dzdomega ()

gdouble             nc_mass_function_dv_dzdomega        (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble z);

FIXME

mfp :

a NcMassFunction.

model :

a NcHICosmo.

z :

redshift.

Returns :

FIXME

nc_mass_function_free ()

void                nc_mass_function_free               (NcMassFunction *mfp);

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

mfp :

a NcMassFunction.

nc_mass_function_n ()

gdouble             nc_mass_function_n                  (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnMl,
                                                         gdouble lnMu,
                                                         gdouble zl,
                                                         gdouble zu,
                                                         NcMassFunctionSplineOptimize spline);

FIXME

mfp :

a NcMassFunction.

model :

a NcHICosmo.

lnMl :

logarithm base e of mass, lower threshold.

lnMu :

logarithm base e of mass, upper threshold.

zl :

minimum redshift.

zu :

maximum redshift.

spline :

Whenever to create an intermediary spline of the integration.

Returns :

FIXME

nc_mass_function_new ()

NcMassFunction *    nc_mass_function_new                (NcDistance *dist,
                                                         NcMatterVar *vp,
                                                         NcGrowthFunc *gf,
                                                         NcMultiplicityFunc *mulf);

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

dist :

a NcDistance sets to "distance".

vp :

a NcMatterVar sets to "variance".

gf :

a NcGrowthFunc sets to "growth".

mulf :

a NcMultiplicityFunc sets to "multiplicity".

Returns :

A new NcMassFunction.

nc_mass_function_prepare ()

void                nc_mass_function_prepare            (NcMassFunction *mfp,
                                                         NcHICosmo *model);

FIXME

mfp :

a NcMassFunction.

model :

a NcHICosmo.

nc_mass_function_prepare_if_needed ()

void                nc_mass_function_prepare_if_needed  (NcMassFunction *mfp,
                                                         NcHICosmo *model);

FIXME

mfp :

a NcMassFunction.

model :

a NcHICosmo.

nc_mass_function_set_eval_limits ()

void                nc_mass_function_set_eval_limits    (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnMi,
                                                         gdouble lnMf,
                                                         gdouble zi,
                                                         gdouble zf);

FIXME

mfp :

a NcMassFunction.

model :

a NcHICosmo.

lnMi :

minimum logarithm base e of mass.

lnMf :

maximum logarithm base e of mass.

zi :

minimum redshift.

zf :

maximum redshift.

nc_mass_function_sigma ()

void                nc_mass_function_sigma              (NcMassFunction *mfp,
                                                         NcHICosmo *model,
                                                         gdouble lnM,
                                                         gdouble z,
                                                         gdouble *dn_dlnM_ptr,
                                                         gdouble *sigma_ptr);

This function computes the standard deviation of density contrast of the matter fluctuations and the the comoving number density of dark matter halos at redshift z and mass M. These values are stored in sigma_ptr and dn_dlnM_ptr, respectively.

mfp :

a NcMassFunction.

model :

a NcHICosmo.

lnM :

logarithm base e of mass.

z :

redshift.

dn_dlnM_ptr :

pointer to comoving number density of halos.

sigma_ptr :

pointer to the standard deviation of the density contrast.

Property Details

The "distance" property

  "distance"                 NcDistance*           : Read / Write / Construct Only

This property keeps the distance object.


The "growth" property

  "growth"                   NcGrowthFunc*         : Read / Write / Construct Only

This property keeps the growth function object.


The "multiplicity" property

  "multiplicity"             NcMultiplicityFunc*   : Read / Write / Construct Only

This property keeps the multiplicity function object.


The "variance" property

  "variance"                 NcMatterVar*          : Read / Write / Construct Only

This property keeps the matter variance object.