Function trv::calc_ylm_wgtd_shotnoise_amp_for_powspec(ParticleCatalogue&, ParticleCatalogue&, LineOfSight *, LineOfSight *, double, int, int)#
Defined in File twopt.cpp
Function Documentation#
-
std::complex<double> trv::calc_ylm_wgtd_shotnoise_amp_for_powspec(ParticleCatalogue &particles_data, ParticleCatalogue &particles_rand, LineOfSight *los_data, LineOfSight *los_rand, double alpha, int ell, int m)#
Calculate power spectrum shot noise weighted by reduced spherical harmonics.
This calculates the quantity
\[ \bar{N}_{LM}(\vec{x}) = {\sum_i}{\vphantom{\sum}}' y_{LM}^*(\hat{\vec{x}}) w(\vec{x})^2 \,, \]where if a pair of catalogues are provided,\[ {\sum_i}{\vphantom{\sum}}' = \sum_{i \in \mathrm{data}} + \alpha^2 \sum_{i \in \mathrm{rand}} \,, \]and otherwise\[ {\sum_i}{\vphantom{\sum}}' = \alpha^2 \sum_{i \in \mathrm{data\ or\ rand}} \,. \]- Parameters
particles_data – (Data-source) particle catalogue.
particles_rand – (Random-source) particle catalogue.
los_data – (Data-source) particle lines of sight.
los_rand – (Random-source) particle lines of sight.
alpha – Alpha contrast.
ell – Degree of the spherical harmonic.
m – Order of the spherical harmonic.
- Returns
Weighted shot noise for power spectrum.