CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
NumberCounts1D_Redshift.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2010 by Federico Marulli *
3  * federico.marulli3@unibo.it *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 2 of *
8  * the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public *
16  * License along with this program; if not, write to the Free *
17  * Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ********************************************************************/
20 
35 #ifndef __NCOUNTS1DR__
36 #define __NCOUNTS1DR__
37 
38 
39 #include "NumberCounts1D.h"
40 
41 
42 // ===================================================================================================
43 
44 
45 namespace cbl {
46 
47  namespace measure {
48 
56  namespace numbercounts {
57 
69 
70  public:
71 
76 
83 
88  virtual ~NumberCounts1D_Redshift () = default;
89 
111  NumberCounts1D_Redshift (const catalogue::Catalogue data, const size_t nbins, const double minVar=par::defaultDouble, const double maxVar=par::defaultDouble, const double shift = 0.5, const glob::HistogramType hist_type=glob::HistogramType::_N_V_, const double fact = 1., const BinType bin_type=BinType::_linear_) : NumberCounts1D(catalogue::Var::_Redshift_, bin_type, data, nbins, minVar, maxVar, shift, hist_type, fact) {}
112 
126  NumberCounts1D_Redshift (const catalogue::Catalogue data, const std::vector<double> vec_edges, const glob::HistogramType hist_type=glob::HistogramType::_N_V_, const double fact = 1.) : NumberCounts1D(catalogue::Var::_Redshift_, vec_edges, data, hist_type, fact) {}
127 
129 
130  };
131  }
132  }
133 }
134 
135 #endif
The class NumberCounts1D.
The class Catalogue.
Definition: Catalogue.h:654
NumberCounts1D_Redshift(const catalogue::Catalogue data, const std::vector< double > vec_edges, const glob::HistogramType hist_type=glob::HistogramType::_N_V_, const double fact=1.)
constructor
virtual ~NumberCounts1D_Redshift()=default
default destructor
NumberCounts1D_Redshift(const catalogue::Catalogue data, const size_t nbins, const double minVar=par::defaultDouble, const double maxVar=par::defaultDouble, const double shift=0.5, const glob::HistogramType hist_type=glob::HistogramType::_N_V_, const double fact=1., const BinType bin_type=BinType::_linear_)
constructor
std::shared_ptr< catalogue::Catalogue > catalogue()
function to get the protected member m_data
Definition: NumberCounts.h:193
double fact()
return the normalization factor
Definition: NumberCounts.h:301
static const double defaultDouble
default double value
Definition: Constants.h:348
Var
the catalogue variables
Definition: Catalogue.h:70
HistogramType
the histogram type
Definition: Histogram.h:49
@ _N_V_
the binned counts,
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38
BinType
the binning type
Definition: Kernel.h:505
@ _linear_
linear binning