Constructor

NumCosmoHaloMassFunctionnew

Declaration [src]

NcHaloMassFunction*
nc_halo_mass_function_new (
  NcDistance* dist,
  NcmPowspecFilter* psf,
  NcMultiplicityFunc* mulf
)

Description [src]

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

Parameters

dist

Type: NcDistance

A NcDistance sets to NcHaloMassFunction:distance.

The data is owned by the caller of the function.
psf

Type: NcmPowspecFilter

A NcmPowspecFilter sets to NcHaloMassFunction:powerspectrum-filtered.

The data is owned by the caller of the function.
mulf

Type: NcMultiplicityFunc

A NcMultiplicityFunc sets to NcHaloMassFunction:multiplicity.

The data is owned by the caller of the function.

Return value

Type: NcHaloMassFunction

A new NcHaloMassFunction.

The caller of the function takes ownership of the data, and is responsible for freeing it.