SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
poisson.hpp
Go to the documentation of this file.
1 
2 /*
3  * Copyright 2008,2009,2010,2011,2012 Stephan Ossowski, Korbinian Schneeberger,
4  * Felix Ott, Joerg Hagmann, Alf Scotland, Sebastian Bender
5  *
6  * This file is part of SHORE.
7  *
8  * SHORE is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * SHORE is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with SHORE. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
25 
26 #ifndef SHORE_STATISTICS_POISSON_HPP__
27 #define SHORE_STATISTICS_POISSON_HPP__
28 
29 #include <cstddef>
30 
31 namespace shore {
32 
34 class poisson
35 {
36  private:
37 
38  double m_lambda;
39 
40  public:
41 
43  poisson(const double lambda);
44 
46  double pdf(const size_t k) const;
47 
49  double cdf(const size_t k) const;
50 
52  double cdf_P(const size_t k) const;
53 
55  double cdf_Q(const size_t k) const;
56 };
57 
58 } // namespace
59 
60 #endif // SHORE_STATISTICS_POISSON_HPP__
61