Go to the source code of this file.
|
| namespace | FML |
| |
| namespace | FML::RANDOM |
| | This namespace deals with generating random numbers and random fields.
|
| |
| namespace | FML::RANDOM::NONGAUSSIAN |
| | Generate a non-local gaussian random field in real or fourier space from a given power-spectrum and a source of random numbers.
|
| |
|
| template<int N> |
| void | FML::RANDOM::NONGAUSSIAN::generate_nonlocal_gaussian_random_field_fourier (FFTWGrid< N > &phi_fourier, RandomGenerator *rng, std::function< double(double)> Pofk_of_kBox_over_volume, bool fix_amplitude, double fNL, std::string type_of_fnl, double u=0.0, std::vector< double > kernel_values={}, const GAUSSIAN::RandomFieldOptions &random_options={}) |
| | \( P(k) \to \phi_{\rm gaussian} \to \phi = \phi_{\rm gaussian} + f_{\rm NL} K(\phi_{\rm
gaussian},\phi_{\rm gaussian}) \) where the kernel is some quadratic form which in its simples form (local) is just \( \phi_{\rm gaussian}^2 \).
|
| |
| template<int N> |
| void | FML::RANDOM::NONGAUSSIAN::generate_nonlocal_gaussian_random_field_fourier_cosmology (FFTWGrid< N > &delta_fourier, RandomGenerator *rng, std::function< double(double)> Pofk_of_kBox_over_Pofk_primordal, std::function< double(double)> Pofk_of_kBox_over_volume_primordial, bool fix_amplitude, double fNL, std::string type_of_fnl, double u=0.0, std::vector< double > kernel_values={}, const GAUSSIAN::RandomFieldOptions &random_options={}) |
| | This computes a non-gaussian density field at any redshift.
|
| |