56 namespace numbercounts {
214 void compute_covariance (
const std::vector<std::shared_ptr<glob::Histogram>> hist,
const bool JK)
override;
239 void write_covariance (
const std::string dir,
const std::string file)
const override;
The class NumberCounts1D.
void write(const std::string dir=par::defaultString, const std::string file=par::defaultString, const int rank=0) const override
write the measured number counts
std::shared_ptr< data::Data > m_measureJackknife(const std::string dir_output_resample=par::defaultString) override
measure the number counts with Jackknife covariance matrix
std::shared_ptr< data::Data > Gaussian_smoothing(const double sigma) override
apply a Gaussian filter to the distribution
void measure(const ErrorType errorType=ErrorType::_Poisson_, const std::string dir_output_resample=par::defaultString, const int nResamplings=0, const int seed=3213, const bool conv=false, const double sigma=0.) override
measure the number counts
void write_covariance(const std::string dir, const std::string file) const override
write the measured covariance matrix
void compute_covariance(const std::vector< std::shared_ptr< glob::Histogram >> hist, const bool JK) override
compute the covariance matrix
virtual ~NumberCounts1D()=default
default destructor
catalogue::Var m_Var
the catalogue variable to bin
std::shared_ptr< data::Data > m_measureBootstrap(const std::string dir_output_resample=par::defaultString, const int nResamplings=0, const int seed=3213) override
measure the number counts with Bootstrap covariance matrix
NumberCounts1D()
default constructor
std::shared_ptr< data::Data > m_measurePoisson() override
measure the number counts with Poisson errors
double fact()
return the normalization factor
static const std::string defaultString
default std::string value
static const double defaultDouble
default double value
Var
the catalogue variables
HistogramType
the histogram type
@ _N_V_
the binned counts,
ErrorType
the two-point correlation function error type
@ _Poisson_
Poissonian error.
The global namespace of the CosmoBolognaLib
std::string conv(const T val, const char *fact)
convert a number to a std::string