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

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

#include <DataGenerator.h>

Inherits std::normal_distribution< double >.

Public Types

using result_type = typename _BASE::result_type
 

Public Member Functions

 normal_distribution (result_type _mean, result_type _stddev)
 
template<typename value_type >
double getProbability (value_type v) const
 get theoretical probability of a value
 

Public Attributes

const double sqrt2pi = 2.5066283
 
const result_type mean
 
const result_type stddev
 

Detailed Description

template<class RealType = double, class _BASE = std::normal_distribution<RealType>>
class o2::test::normal_distribution< RealType, _BASE >

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

Definition at line 182 of file DataGenerator.h.

Member Typedef Documentation

◆ result_type

template<class RealType = double, class _BASE = std::normal_distribution<RealType>>
using o2::test::normal_distribution< RealType, _BASE >::result_type = typename _BASE::result_type

Definition at line 185 of file DataGenerator.h.

Constructor & Destructor Documentation

◆ normal_distribution()

template<class RealType = double, class _BASE = std::normal_distribution<RealType>>
o2::test::normal_distribution< RealType, _BASE >::normal_distribution ( result_type  _mean,
result_type  _stddev 
)
inline

Definition at line 187 of file DataGenerator.h.

Member Function Documentation

◆ getProbability()

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

get theoretical probability of a value

Definition at line 200 of file DataGenerator.h.

Member Data Documentation

◆ mean

template<class RealType = double, class _BASE = std::normal_distribution<RealType>>
const result_type o2::test::normal_distribution< RealType, _BASE >::mean

Definition at line 190 of file DataGenerator.h.

◆ sqrt2pi

template<class RealType = double, class _BASE = std::normal_distribution<RealType>>
const double o2::test::normal_distribution< RealType, _BASE >::sqrt2pi = 2.5066283

Definition at line 189 of file DataGenerator.h.

◆ stddev

template<class RealType = double, class _BASE = std::normal_distribution<RealType>>
const result_type o2::test::normal_distribution< RealType, _BASE >::stddev

Definition at line 191 of file DataGenerator.h.


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