Triumvirate C++ API 0.5.0
Three-point clustering measurements in large-scale structure analyses.
Loading...
Searching...
No Matches
twopt.hpp File Reference

Two-point statistic computations. More...

#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include "monitor.hpp"
#include "maths.hpp"
#include "parameters.hpp"
#include "dataobjs.hpp"
#include "particles.hpp"
#include "field.hpp"
+ Include dependency graph for twopt.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  trv
 

Functions

double trv::calc_coupling_coeff_2pt (int ell, int ELL, int m, int M)
 Calculate the coupling coefficient for spherical-harmonic components of full two-point statistics.
 
double trv::calc_powspec_normalisation_from_particles (ParticleCatalogue &particles, double alpha=1.)
 Calculate particle-based power spectrum normalisation.
 
double trv::calc_powspec_normalisation_from_mesh (trv::ParticleCatalogue &particles, trv::ParameterSet &params, double alpha=1.)
 Calculate mesh-based power spectrum normalisation.
 
double trv::calc_powspec_normalisation_from_meshes (trv::ParticleCatalogue &particles_data, trv::ParticleCatalogue &particles_rand, trv::ParameterSet &params, double alpha)
 Calculate power spectrum normalisation from mixed meshes.
 
double trv::calc_powspec_normalisation_from_meshes (trv::ParticleCatalogue &particles_data, trv::ParticleCatalogue &particles_rand, trv::ParameterSet &params, double alpha, double padding, double cellsize, const std::string &assignment)
 Calculate power spectrum normalisation from mixed meshes.
 
double trv::calc_powspec_shotnoise_from_particles (ParticleCatalogue &particles, double alpha=1.)
 Calculate particle-based power spectrum shot noise level.
 
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.
 
std::complex< double > trv::calc_ylm_wgtd_shotnoise_amp_for_powspec (ParticleCatalogue &particles, LineOfSight *los, double alpha, int ell, int m)
 Calculate power spectrum shot noise weighted by reduced spherical harmonics.
 
trv::PowspecMeasurements trv::compute_powspec (ParticleCatalogue &catalogue_data, ParticleCatalogue &catalogue_rand, LineOfSight *los_data, LineOfSight *los_rand, trv::ParameterSet &params, trv::Binning &kbinning, double norm_factor)
 Compute power spectrum from paired survey-type catalogues.
 
trv::TwoPCFMeasurements trv::compute_corrfunc (ParticleCatalogue &catalogue_data, ParticleCatalogue &catalogue_rand, LineOfSight *los_data, LineOfSight *los_rand, trv::ParameterSet &params, trv::Binning &rbinning, double norm_factor)
 Compute two-point correlation function from paired survey-type catalogues.
 
trv::PowspecMeasurements trv::compute_powspec_in_gpp_box (ParticleCatalogue &catalogue_data, trv::ParameterSet &params, trv::Binning kbinning, double norm_factor)
 Compute power spectrum in a periodic box in the global plane-parallel approximation.
 
trv::TwoPCFMeasurements trv::compute_corrfunc_in_gpp_box (ParticleCatalogue &catalogue_data, trv::ParameterSet &params, trv::Binning &rbinning, double norm_factor)
 Compute two-point correlation function in a periodic box in the global plane-parallel approximation.
 
trv::TwoPCFWindowMeasurements trv::compute_corrfunc_window (trv::ParticleCatalogue &catalogue_rand, trv::LineOfSight *los_rand, trv::ParameterSet &params, trv::Binning rbinning, double alpha, double norm_factor)
 Compute two-point correlation function window from a random catalogue and optionally save the results.
 

Detailed Description

Two-point statistic computations.

Authors
Mike S Wang (https://github.com/MikeSWang), Naonori S Sugiyama (https://github.com/naonori)

This module provides the computation of two-point statistics including:

  • power spectrum normalisation (mesh- or particle-based);
  • power spectrum shot noise level and reduced-spherical-harmonic-weighted shot noise;
  • power spectrum and two-point correlation function for paired survey-type catalogues;
  • power spectrum and two-point correlation function for periodic-box simulation catalogues.

Definition in file twopt.hpp.