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

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

#include <DataGenerator.h>

Inherits std::geometric_distribution< int >.

Public Member Functions

 geometric_distribution (float _parameter)
 
template<typename value_type >
double getProbability (value_type v) const
 get theoretical probability of a value
 

Public Attributes

const float parameter
 

Detailed Description

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

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

Definition at line 241 of file DataGenerator.h.

Constructor & Destructor Documentation

◆ geometric_distribution()

template<class IntType = int, class _BASE = std::geometric_distribution<IntType>>
o2::test::geometric_distribution< IntType, _BASE >::geometric_distribution ( float  _parameter)
inline

Definition at line 244 of file DataGenerator.h.

Member Function Documentation

◆ getProbability()

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

get theoretical probability of a value

Definition at line 250 of file DataGenerator.h.

Member Data Documentation

◆ parameter

template<class IntType = int, class _BASE = std::geometric_distribution<IntType>>
const float o2::test::geometric_distribution< IntType, _BASE >::parameter

Definition at line 246 of file DataGenerator.h.


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