Skip to content

Commit

Permalink
Fixed Function Type Definition
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardojsbarroso committed Jan 16, 2023
1 parent ea3b7bb commit 5b90b3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
11 changes: 5 additions & 6 deletions numcosmo/lss/nc_halo_bias_st_spher.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* @short_description: Sheth-Tormen spherical halo bias function type.
*
* Object implementation to compute the halo bias function given
* the Sheth-Tormen mass function for spherical collapse. A description
* the Sheth-Tormen mass function for spherical collapse. A description
* of the function is given below. Check nc_halo_bias.c for a description
* of halo biases and nc_multiplicity_func_st.c for the Sheth-Tormen
* mass function.
Expand All @@ -41,9 +41,9 @@
* \begin{align}
* b(\nu)=1+\frac{a \nu^2-1}{\delta_c}+\frac{2 p}{\delta_c\left[1+\left(a_c \nu^2\right)^p\right]}
* \end{align}
* where $b(\nu)$ is the bias, $\delta_c$ is the critical threshold,
* where $b(\nu)$ is the bias, $\delta_c$ is the critical threshold,
* $\nu = \frac{\delta_c}{\sigma}$, and $(a, p)$ are free parameters
* determined by the number of massive halos in the simulations and
* determined by the number of massive halos in the simulations and
* by the shape of the mass function at the low-mass end, respectively.
*
* The user must provide input the values: @NcHaloMassFunction, @delta_c, @a, @p - nc_halo_bias_st_spher_new_full().
Expand Down Expand Up @@ -207,7 +207,7 @@ _nc_halo_bias_st_spher_eval (NcHaloBias *biasf, NcHICosmo *cosmo, gdouble sigma
*
* Returns: A new #NcHaloBias.
*/
NcHaloBias *
NcHaloBiasSTSpher *
nc_halo_bias_st_spher_new (NcHaloMassFunction *mfp)
{
return g_object_new (NC_TYPE_HALO_BIAS_ST_SPHER,
Expand All @@ -226,7 +226,7 @@ nc_halo_bias_st_spher_new (NcHaloMassFunction *mfp)
*
* Returns: A new #NcHaloBias.
*/
NcHaloBias *
NcHaloBiasSTSpher *
nc_halo_bias_st_spher_new_full (NcHaloMassFunction *mfp, gdouble delta_c, gdouble a, gdouble p)
{
return g_object_new (NC_TYPE_HALO_BIAS_ST_SPHER,
Expand Down Expand Up @@ -322,4 +322,3 @@ nc_halo_bias_st_spher_get_p (const NcHaloBiasSTSpher *biasf_st_spher)
}

/* _NC_BIAS_FUNCTION_ST_SPHER_DATASET_9901122 = {1.686, 0.75, 0.3}; */

5 changes: 2 additions & 3 deletions numcosmo/lss/nc_halo_bias_st_spher.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ struct _NcHaloBiasSTSpher

GType nc_halo_bias_st_spher_get_type (void) G_GNUC_CONST;

NcHaloBias *nc_halo_bias_st_spher_new (NcHaloMassFunction *mfp);
NcHaloBias *nc_halo_bias_st_spher_new_full (NcHaloMassFunction *mfp, gdouble delta_c, gdouble a, gdouble p);
NcHaloBiasSTSpher *nc_halo_bias_st_spher_new (NcHaloMassFunction *mfp);
NcHaloBiasSTSpher *nc_halo_bias_st_spher_new_full (NcHaloMassFunction *mfp, gdouble delta_c, gdouble a, gdouble p);

void nc_halo_bias_st_spher_set_delta_c (NcHaloBiasSTSpher *biasf_st_spher, gdouble delta_c);
gdouble nc_halo_bias_st_spher_get_delta_c (const NcHaloBiasSTSpher *biasf_st_spher);
Expand All @@ -73,4 +73,3 @@ gdouble nc_halo_bias_st_spher_get_p (const NcHaloBiasSTSpher *biasf_st_spher);
G_END_DECLS

#endif /* _NC_HALO_BIAS_ST_SPHER_H_ */

0 comments on commit 5b90b3b

Please sign in to comment.