|
| template<int N, class T > |
| void | FML::CORRELATIONFUNCTIONS::compute_power_spectrum (int Ngrid, T *part, size_t NumPart, size_t NumPartTotal, PowerSpectrumBinning< N > &pofk, std::string density_assignment_method, bool interlacing) |
| | Assign particles to grid using density_assignment_method = NGP,CIC,TSC,PCS,... Fourier transform, decolvolve the window function for the assignment above.
|
| |
| template<int N, class T > |
| void | FML::CORRELATIONFUNCTIONS::compute_power_spectrum_direct_summation (int Ngrid, const T *part, size_t NumPart, PowerSpectrumBinning< N > &pofk) |
| | Brute force (but aliasing free) computation of the power spectrum.
|
| |
| template<int N> |
| void | FML::CORRELATIONFUNCTIONS::bin_up_power_spectrum (const FFTWGrid< N > &fourier_grid, PowerSpectrumBinning< N > &pofk) |
| | Compute the power-spectrum of a fourier grid.
|
| |
| template<int N> |
| void | FML::CORRELATIONFUNCTIONS::bin_up_deconvolved_power_spectrum (const FFTWGrid< N > &fourier_grid, PowerSpectrumBinning< N > &pofk, std::string density_assignment_method) |
| | Compute the power-spectrum of a fourier grid.
|
| |
| template<int N> |
| void | FML::CORRELATIONFUNCTIONS::bin_up_cross_power_spectrum (const FFTWGrid< N > &fourier_grid_1, const FFTWGrid< N > &fourier_grid_2, PowerSpectrumBinning< N > &pofk) |
| | Compute the cross power-spectrum of two fourier grids.
|
| |
| template<int N> |
| void | FML::CORRELATIONFUNCTIONS::compute_power_spectrum_multipoles_fourier (const FFTWGrid< N > &fourier_grid, std::vector< PowerSpectrumBinning< N > > &Pell, std::vector< double > line_of_sight_direction) |
| | Compute power-spectrum multipoles from a Fourier grid where we have a fixed line_of_sight_direction (typical coordinate axes like \( (0,0,1) \)).
|
| |
| template<int N, class T > |
| void | FML::CORRELATIONFUNCTIONS::compute_power_spectrum_multipoles (int Ngrid, FML::PARTICLE::MPIParticles< T > &part, double velocity_to_displacement, std::vector< PowerSpectrumBinning< N > > &Pell, std::string density_assignment_method, bool interlacing) |
| | A simple power-spectrum estimator for multipoles in simulations.
|
| |
| template<int N, class T , int ORDER, bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_polyspectrum (int Ngrid, T *part, size_t NumPart, size_t NumPartTotal, PolyspectrumBinning< N, ORDER, COMPACT > &polyofk, std::string density_assignment_method, bool interlacing) |
| | Computes the polyspectrum \( P(k_1,k_2,\ldots,k_{\rm ORDER}) = \left<\delta(k_1)\cdots\delta(k_{\rm
ORDER})\right> \) from particles.
|
| |
| template<int N, int ORDER, bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_polyspectrum (const FFTWGrid< N > &fourier_grid, PolyspectrumBinning< N, ORDER, COMPACT > &polyofk) |
| | Computes the polyspectrum \( P(k_1,k_2,\ldots,k_{\rm ORDER}) = \left<\delta(k_1)\cdots\delta(k_{\rm
ORDER})\right> \) from a fourier grid.
|
| |
| template<int N, bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_monospectrum (const FFTWGrid< N > &fourier_grid, MonospectrumBinning< N, COMPACT > &pofk) |
| | Computes the monospectrum \( P(k_1,k_2) = \left<\delta(k_1)\delta(k_2)\right> \) from a fourier grid.
|
| |
| template<int N, class T , bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_monospectrum (int Ngrid, T *part, size_t NumPart, size_t NumPartTotal, MonospectrumBinning< N, COMPACT > &pofk, std::string density_assignment_method, bool interlacing) |
| | Computes the monospectrum \( P(k_1,k_2) = \left<\delta(k_1)\delta(k_2)\right> \) from particles.
|
| |
| template<int N, class T , bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_bispectrum (int Ngrid, T *part, size_t NumPart, size_t NumPartTotal, BispectrumBinning< N, COMPACT > &bofk, std::string density_assignment_method, bool interlacing) |
| | Computes the bispectrum \( B(k_1,k_2,k_3) = \left<\delta(k_1)\delta(k_2)\delta(k_3)\right> \) from particles.
|
| |
| template<int N, bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_bispectrum (const FFTWGrid< N > &fourier_grid, BispectrumBinning< N, COMPACT > &bofk) |
| | Computes the bispectrum \( B(k_1,k_2,k_3) = \left<\delta(k_1)\delta(k_2)\delta(k_3)\right> \) from a fourier grid.
|
| |
| template<int N, bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_trispectrum (const FFTWGrid< N > &fourier_grid, TrispectrumBinning< N, COMPACT > &tofk) |
| | Computes the trispectrum \( T(k_1,k_2,k_3,k_4) =
\left<\delta(k_1)\delta(k_2)\delta(k_3)\delta(k_4)\right> \) from a fourier grid.
|
| |
| template<int N, class T , bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_trispectrum (int Ngrid, T *part, size_t NumPart, size_t NumPartTotal, TrispectrumBinning< N, COMPACT > &tofk, std::string density_assignment_method, bool interlacing) |
| | Computes the truspectrum \( T(k_1,k_2,k_3,k_4) =
\left<\delta(k_1)\delta(k_2)\delta(k_3)\delta(k_4)\right> \) from particles.
|
| |
| template<class F > |
| void | FML::CORRELATIONFUNCTIONS::bin_up_fourier_modes_3d (const FFTWGrid< 3 > &grid, F &&f) |
| | Loop over the local Fourier modes of a 3D grid (except k = 0) in the order of the Fourier index, calling f(fourier_index, kvec, |k|, weight) with weight = 2 for the modes with 0 < k_z < k_ny (they also represent -k) and 1 otherwise.
|
| |
| template<class T > |
| std::pair< double, double > | FML::CORRELATIONFUNCTIONS::particle_shotnoise (const T *part, size_t NumPart, size_t NumPartTotal) |
| | The shot noise of the density field of a set of particles as assigned by particles_to_grid: returns \( (S_2, S_3) \) with \( S_n = \sum m_i^n / (\sum m_i)^n \) (the shot noise of the power spectrum is \( S_2 \) and the constant term of the bispectrum \( S_3 \)).
|
| |
| template<int N, int ORDER, bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_polyspectrum_bincount (int Nmesh, PolyspectrumBinning< N, ORDER, COMPACT > &bins) |
| | This method is used by compute_polyspectrum.
|
| |
| template<int N, bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_monospectrum (const FFTWGrid< N > &fourier_grid, PolyspectrumBinning< N, 2, COMPACT > &pofk) |
| |
| template<int N, bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_bispectrum (const FFTWGrid< N > &fourier_grid, PolyspectrumBinning< N, 3, COMPACT > &bofk) |
| |
| template<int N, bool COMPACT> |
| void | FML::CORRELATIONFUNCTIONS::compute_trispectrum (const FFTWGrid< N > &fourier_grid, PolyspectrumBinning< N, 4, COMPACT > &tofk) |
| |