Project
Loading...
Searching...
No Matches
o2::test::poisson_distribution< IntType, _BASE > Class Template Reference

specialization of std::poisson_distribution which implements also the analytic formula. More...

#include <DataGenerator.h>

Inherits std::poisson_distribution< int >.

Public Types

using result_type = typename _BASE::result_type
 

Public Member Functions

 poisson_distribution (result_type _mean)
 
 ~poisson_distribution ()=default
 
int factorial (unsigned int n) const
 
template<typename value_type >
double getProbability (value_type v) const
 get theoretical probability of a value
 

Public Attributes

const result_type mean
 

Detailed Description

template<class IntType = int, class _BASE = std::poisson_distribution<IntType>>
class o2::test::poisson_distribution< IntType, _BASE >

specialization of std::poisson_distribution which implements also the analytic formula.

Definition at line 212 of file DataGenerator.h.

Member Typedef Documentation

◆ result_type

template<class IntType = int, class _BASE = std::poisson_distribution<IntType>>
using o2::test::poisson_distribution< IntType, _BASE >::result_type = typename _BASE::result_type

Definition at line 215 of file DataGenerator.h.

Constructor & Destructor Documentation

◆ poisson_distribution()

template<class IntType = int, class _BASE = std::poisson_distribution<IntType>>
o2::test::poisson_distribution< IntType, _BASE >::poisson_distribution ( result_type  _mean)
inline

Definition at line 217 of file DataGenerator.h.

◆ ~poisson_distribution()

template<class IntType = int, class _BASE = std::poisson_distribution<IntType>>
o2::test::poisson_distribution< IntType, _BASE >::~poisson_distribution ( )
default

Member Function Documentation

◆ factorial()

template<class IntType = int, class _BASE = std::poisson_distribution<IntType>>
int o2::test::poisson_distribution< IntType, _BASE >::factorial ( unsigned int  n) const
inline

Definition at line 222 of file DataGenerator.h.

◆ getProbability()

template<class IntType = int, class _BASE = std::poisson_distribution<IntType>>
template<typename value_type >
double o2::test::poisson_distribution< IntType, _BASE >::getProbability ( value_type  v) const
inline

get theoretical probability of a value

Definition at line 226 of file DataGenerator.h.

Member Data Documentation

◆ mean

template<class IntType = int, class _BASE = std::poisson_distribution<IntType>>
const result_type o2::test::poisson_distribution< IntType, _BASE >::mean

Definition at line 220 of file DataGenerator.h.


The documentation for this class was generated from the following file: