![]() |
![]() |
![]() |
NumCosmo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
Synopsis
struct NcMassFunctionClass; struct NcMassFunction; enum NcMassFunctionSplineOptimize; NcMassFunction * nc_mass_function_new (NcDistance *dist
,NcMatterVar *vp
,NcGrowthFunc *gf
,NcMultiplicityFunc *mulf
); NcMassFunction * nc_mass_function_copy (NcMassFunction *mfp
); void nc_mass_function_free (NcMassFunction *mfp
); void nc_mass_function_clear (NcMassFunction **mfp
); void nc_mass_function_set_area (NcMassFunction *mfp
,gdouble area
); void nc_mass_function_set_area_sd (NcMassFunction *mfp
,gdouble area_sd
); void nc_mass_function_set_eval_limits (NcMassFunction *mfp
,NcHICosmo *model
,gdouble lnMi
,gdouble lnMf
,gdouble zi
,gdouble zf
); void nc_mass_function_prepare (NcMassFunction *mfp
,NcHICosmo *model
); void nc_mass_function_prepare_if_needed (NcMassFunction *mfp
,NcHICosmo *model
); gdouble nc_mass_function_dn_dlnm (NcMassFunction *mfp
,NcHICosmo *model
,gdouble lnM
,gdouble z
); gdouble nc_mass_function_dv_dzdomega (NcMassFunction *mfp
,NcHICosmo *model
,gdouble z
); gdouble nc_mass_function_d2n_dzdlnm (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_n (NcMassFunction *mfp
,NcHICosmo *model
,gdouble lnMl
,gdouble lnMu
,gdouble zl
,gdouble zu
,NcMassFunctionSplineOptimize spline
); gdouble nc_mass_function_dn_M_to_inf_dv (NcMassFunction *mfp
,NcHICosmo *model
,gdouble M
,gdouble z
); gdouble nc_mass_function_dn_M1_to_M2_dv (NcMassFunction *mfp
,NcHICosmo *model
,gdouble M1
,gdouble M2
,gdouble z
); void nc_mass_function_sigma (NcMassFunction *mfp
,NcHICosmo *model
,gdouble lnM
,gdouble z
,gdouble *dn_dlnM_ptr
,gdouble *sigma_ptr
); void nc_mass_function_alpha_eff (NcMatterVar *vp
,NcHICosmo *model
,gdouble lnM
,gdouble *a_eff_ptr
);
Properties
"area" gdouble : Read / Write / Construct "distance" NcDistance* : Read / Write / Construct Only "growth" NcGrowthFunc* : Read / Write / Construct Only "multiplicity" NcMultiplicityFunc* : Read / Write / Construct Only "variance" NcMatterVar* : Read / Write / Construct Only
Details
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_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.
|
a NcDistance sets to "distance". |
|
a NcMatterVar sets to "variance". |
|
a NcGrowthFunc sets to "growth". |
|
a NcMultiplicityFunc sets to "multiplicity". |
Returns : |
A new 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.
|
a NcMassFunction. |
Returns : |
A new NcMassFunction. [transfer full] |
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.
|
a NcMassFunction. |
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.
|
a NcMassFunction. |
nc_mass_function_set_area ()
void nc_mass_function_set_area (NcMassFunction *mfp
,gdouble area
);
FIXME
|
a NcMassFunction. |
|
area in steradian. |
nc_mass_function_set_area_sd ()
void nc_mass_function_set_area_sd (NcMassFunction *mfp
,gdouble area_sd
);
FIXME
|
a NcMassFunction. |
|
area in square degree. |
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
|
a NcMassFunction. |
|
a NcHICosmo. |
|
minimum logarithm base e of mass. |
|
maximum logarithm base e of mass. |
|
minimum redshift. |
|
maximum redshift. |
nc_mass_function_prepare ()
void nc_mass_function_prepare (NcMassFunction *mfp
,NcHICosmo *model
);
FIXME
|
a NcMassFunction. |
|
a NcHICosmo. |
nc_mass_function_prepare_if_needed ()
void nc_mass_function_prepare_if_needed (NcMassFunction *mfp
,NcHICosmo *model
);
FIXME
|
a NcMassFunction. |
|
a NcHICosmo. |
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.
|
a NcMassFunction. |
|
a NcHICosmo. |
|
logarithm base e of mass. |
|
redshift. |
Returns : |
dn/dlnM. |
nc_mass_function_dv_dzdomega ()
gdouble nc_mass_function_dv_dzdomega (NcMassFunction *mfp
,NcHICosmo *model
,gdouble z
);
FIXME
|
a NcMassFunction. |
|
a NcHICosmo. |
|
redshift. |
Returns : |
FIXME |
nc_mass_function_d2n_dzdlnm ()
gdouble nc_mass_function_d2n_dzdlnm (NcMassFunction *mfp
,NcHICosmo *model
,gdouble lnM
,gdouble z
);
FIXME
|
a NcMassFunction. |
|
a NcHICosmo. |
|
logarithm base e of mass. |
|
redshift. |
Returns : |
FIXME |
nc_mass_function_dn_dz ()
gdouble nc_mass_function_dn_dz (NcMassFunction *mfp
,NcHICosmo *model
,gdouble lnMl
,gdouble lnMu
,gdouble z
,gboolean spline
);
FIXME
|
a NcMassFunction. |
|
a NcHICosmo. |
|
logarithm base e of mass, lower threshold. |
|
logarithm base e of mass, upper threshold. |
|
redshift. |
|
Whenever to create an intermediary spline of the mass integration. |
Returns : |
FIXME |
nc_mass_function_n ()
gdouble nc_mass_function_n (NcMassFunction *mfp
,NcHICosmo *model
,gdouble lnMl
,gdouble lnMu
,gdouble zl
,gdouble zu
,NcMassFunctionSplineOptimize spline
);
FIXME
|
a NcMassFunction. |
|
a NcHICosmo. |
|
logarithm base e of mass, lower threshold. |
|
logarithm base e of mass, upper threshold. |
|
minimum redshift. |
|
maximum redshift. |
|
Whenever to create an intermediary spline of the integration. |
Returns : |
FIXME |
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_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_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.
|
a NcMassFunction. |
|
a NcHICosmo. |
|
logarithm base e of mass. |
|
redshift. |
|
pointer to comoving number density of halos. |
|
pointer to the standard deviation of the density contrast. |
nc_mass_function_alpha_eff ()
void nc_mass_function_alpha_eff (NcMatterVar *vp
,NcHICosmo *model
,gdouble lnM
,gdouble *a_eff_ptr
);
FIXME
|
a NcMatterVar. |
|
a NcHICosmo. |
|
logarithm base e of mass. |
|
FIXME |
Property Details
The "area"
property
"area" gdouble : Read / Write / Construct
This property sets the angular area in steradian.
Allowed values: [0,12.5664]
Default value: 0.0609235
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.