Function trv::calc_powspec_normalisation_from_meshes(trv::ParticleCatalogue&, trv::ParticleCatalogue&, trv::ParameterSet&, double, double, double, std::string)#

Function Documentation#

double trv::calc_powspec_normalisation_from_meshes(trv::ParticleCatalogue &particles_data, trv::ParticleCatalogue &particles_rand, trv::ParameterSet &params, double alpha, double padding, double cellsize, std::string assignment)#

Calculate power spectrum normalisation from mixed meshes.

The box size per dimension is internally determined by the particle coordinate extents, with a padding factor applied. The mesh number in each dimension is determined by the box size and the cell size.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
  • particles_data – Data-source particle catalogue.

  • particles_rand – Random-source particle catalogue.

  • params – Parameter set.

  • alpha – Alpha contrast.

  • padding – Padding factor for the box size in each dimension. This overrides the box size set in the parameter set.

  • cellsize – Cell size of the mesh grid in each dimension. This overrides the mesh number set in the parameter set.

  • assignment – Assignment scheme for particles to mesh. This overrides the assignment scheme set in the parameter set.

Returns

Power spectrum normalisation factor.