![]() |
CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
|
#include "Headers/LogNormal.h"
Public Member Functions | |
Constructors/destructors | |
LogNormal ()=default | |
default constructor | |
~LogNormal ()=default | |
default destructor | |
LogNormal (const catalogue::Catalogue random, const cosmology::Cosmology cosmology, const int nObjects, const double redshift, const double bias, const double cell_size, const bool real=true, const std::string method_Pk="CAMB", const bool NL=false) | |
constructor More... | |
Functions to get the private members of the class | |
std::shared_ptr< catalogue::Catalogue > | catalogue (const size_t i) |
get the private member LogNormal::m_LNCat[i] More... | |
int | nObjects () const |
get the private member LogNormal::m_nObjects More... | |
int | redshift () const |
get the private member LogNormal::m_redshift More... | |
double | bias () const |
get the private member LogNormal::m_bias More... | |
bool | real () const |
get the private member LogNormal::m_real More... | |
std::string | method_Pk () const |
get the private member LogNormal::m_method_Pk More... | |
bool | NL () const |
get the private member LogNormal::m_NL More... | |
Functions to set the private members of the class | |
void | set_nObjects (const int nObjects) |
set the private member LogNormal::m_nObjects More... | |
void | set_redshift (const double redshift) |
set the private member LogNormal::m_redshift More... | |
void | set_bias (const double bias) |
set the private member LogNormal::m_bias More... | |
void | set_real (const bool real) |
set the private member LogNormal::m_real More... | |
void | set_method_Pk (const std::string method_Pk) |
set the private member LogNormal::m_method_Pk More... | |
void | set_NL (const bool NL) |
set the private member LogNormal::m_NL More... | |
Functions to generate the log-normal mock catalogues | |
void | generate (const int n_lognormal_mocks, const std::string output_dir, const std::string filename="lognormal", const int start=1, const int seed=3213) |
generate the log-normal mock catalogues More... | |
Protected Attributes | |
std::vector< std::shared_ptr< catalogue::Catalogue > > | m_catalogue = {} |
vector containing pointers to the log-normal realizations | |
catalogue::Catalogue | m_random |
the random catalogues used to construct the mask | |
cosmology::Cosmology | m_cosmology |
the assumed cosmological model | |
int | m_nObjects |
the mean total number of objects in the log-normal catalogues | |
double | m_redshift |
the mean redshift the log-normal catalogues | |
double | m_bias |
the bias of the log-normal density field catalogues | |
double | m_cell_size |
the cell size in comoving scale | |
bool | m_real |
true → real space; false → redshift space (only monopole distortions) | |
std::string | m_method_Pk |
the method to compute the model power spectrum (i.e. the Boltzmann solver) | |
bool | m_NL |
true → compute the non-linear power spectrum; false → compute the linear power spectrum | |
The class LogNormal.
This class is used to handle objects of type LogNormal
Definition at line 58 of file LogNormal.h.
|
inline |
constructor
random | input random catalogue (should be much larger than the random catalogue used to measure the two-point correlation function) |
cosmology | the assumed cosmological model |
nObjects | mean total number of objects in the log-normal catalogues |
redshift | mean redshift the log-normal catalogues |
bias | bias of the log-normal density field catalogues |
cell_size | the cell size of the density field in comoving coordinates |
real | true → real space; false → redshift space (only monopole distortions) |
method_Pk | the method to compute the model power spectrum (i.e. the Boltzmann solver) |
NL | true → compute the non-linear power spectrum; false → compute the linear power spectrum |
Definition at line 138 of file LogNormal.h.
|
inline |
get the private member LogNormal::m_bias
Definition at line 179 of file LogNormal.h.
std::shared_ptr< catalogue::Catalogue > cbl::lognormal::LogNormal::catalogue | ( | const size_t | i | ) |
get the private member LogNormal::m_LNCat[i]
i | index of the log-normal realization |
Definition at line 47 of file LogNormal.cpp.
void cbl::lognormal::LogNormal::generate | ( | const int | n_lognormal_mocks, |
const std::string | output_dir, | ||
const std::string | filename = "lognormal" , |
||
const int | start = 1 , |
||
const int | seed = 3213 |
||
) |
generate the log-normal mock catalogues
n_lognormal_mocks | number of log-normal mock catalogues to be constructed |
output_dir | the output directory |
filename | the prefix of the ouput file containing the LogNormal realizations |
start | the starting index of the mock to be created |
seed | the seed for random number generation |
Definition at line 62 of file LogNormal.cpp.
|
inline |
get the private member LogNormal::m_method_Pk
Definition at line 195 of file LogNormal.h.
|
inline |
get the private member LogNormal::m_NL
Definition at line 203 of file LogNormal.h.
|
inline |
get the private member LogNormal::m_nObjects
Definition at line 164 of file LogNormal.h.
|
inline |
get the private member LogNormal::m_real
Definition at line 187 of file LogNormal.h.
|
inline |
get the private member LogNormal::m_redshift
Definition at line 172 of file LogNormal.h.
|
inline |
set the private member LogNormal::m_bias
bias | the bias of the log-normal density field catalogues |
Definition at line 235 of file LogNormal.h.
|
inline |
set the private member LogNormal::m_method_Pk
method_Pk | the method to compute the model power spectrum (i.e. the Boltzmann solver) |
Definition at line 251 of file LogNormal.h.
|
inline |
set the private member LogNormal::m_NL
NL | true → compute the non-linear power spectrum; false → compute the linear power spectrum |
Definition at line 259 of file LogNormal.h.
|
inline |
set the private member LogNormal::m_nObjects
nObjects | the mean total number of objects in the log-normal catalogues |
Definition at line 219 of file LogNormal.h.
|
inline |
set the private member LogNormal::m_real
real | true → real space; false → redshift space (only monopole distortions) |
Definition at line 243 of file LogNormal.h.
|
inline |
set the private member LogNormal::m_redshift
redshift | the mean redshift the log-normal catalogues catalogues |
Definition at line 227 of file LogNormal.h.