g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::rpoissd Class Reference
Inheritance diagram for tools::rpoissd:
Inheritance graph
[legend]
Collaboration diagram for tools::rpoissd:
Collaboration graph
[legend]

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual double shootd () const
 
 rpoissd (double a_mean=1)
 
virtual ~rpoissd ()
 
 rpoissd (const rpoissd &a_from)
 
rpoissdoperator= (const rpoissd &a_from)
 
uint64 shoot () const
 
- Public Member Functions inherited from tools::irandd
virtual ~irandd ()
 
- Public Member Functions inherited from tools::rpoiss< rtausmed, double, uint64 >
 rpoiss (rtausmed &a_flat, double a_mean=1)
 
 rpoiss (const rpoiss &a_from)
 
virtual ~rpoiss ()
 
rpoissoperator= (const rpoiss &a_from)
 
uint64 shoot (const double &a_two_pi, double(*a_sqrt)(double), double(*a_log)(double), double(*a_exp)(double), double(*a_cos)(double)) const
 
rtausmedflat ()
 
void set_seed (unsigned int a_seed)
 

Protected Attributes

rtausmed m_flat
 
- Protected Attributes inherited from tools::rpoiss< rtausmed, double, uint64 >
rtausmedm_flat
 
double m_mean
 

Detailed Description

Definition at line 178 of file randd.

Constructor & Destructor Documentation

◆ rpoissd() [1/2]

tools::rpoissd::rpoissd ( double  a_mean = 1)
inline

Definition at line 189 of file randd.

189 :parent(m_flat,a_mean),m_flat(){}

◆ ~rpoissd()

virtual tools::rpoissd::~rpoissd ( )
inlinevirtual

Definition at line 190 of file randd.

190 {}

◆ rpoissd() [2/2]

tools::rpoissd::rpoissd ( const rpoissd a_from)
inline

Definition at line 192 of file randd.

192 :irandd(a_from),parent(m_flat),m_flat(a_from.m_flat){}

Member Function Documentation

◆ cast()

virtual void* tools::rpoissd::cast ( const std::string &  a_class) const
inlinevirtual

Implements tools::irandd.

Definition at line 183 of file randd.

183  {
184  if(void* p = cmp_cast<rpoissd>(this,a_class)) return p;
185  return 0;
186  }

◆ operator=()

rpoissd& tools::rpoissd::operator= ( const rpoissd a_from)
inline

Definition at line 193 of file randd.

193  {
194  parent::operator=(a_from);
195  m_flat = a_from.m_flat;
196  return *this;
197  }

◆ shoot()

uint64 tools::rpoissd::shoot ( ) const
inline

Definition at line 199 of file randd.

199 {return parent::shoot(two_pi(),::sqrt,::log,::exp,::cos);}

◆ shootd()

virtual double tools::rpoissd::shootd ( ) const
inlinevirtual

Implements tools::irandd.

Definition at line 187 of file randd.

187 {return double(shoot());}

Member Data Documentation

◆ m_flat

rtausmed tools::rpoissd::m_flat
protected

Definition at line 201 of file randd.


The documentation for this class was generated from the following file:
tools::rpoissd::shoot
uint64 shoot() const
Definition: randd:199
tools::two_pi
double two_pi()
Definition: mathd:18
tools::rpoiss< rtausmed, double, uint64 >::operator=
rpoiss & operator=(const rpoiss &a_from)
Definition: randT:160
tools::rpoissd::m_flat
rtausmed m_flat
Definition: randd:201
tools::rpoiss< rtausmed, double, uint64 >::shoot
uint64 shoot(const double &a_two_pi, double(*a_sqrt)(double), double(*a_log)(double), double(*a_exp)(double), double(*a_cos)(double)) const
Definition: randT:165