| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Rndm::Binomial Class Reference

Parameters for the Binomial distributed random number generation. More...

`#include <RndmGenerators.h>`

Inheritance diagram for Rndm::Binomial:
[legend]
Collaboration diagram for Rndm::Binomial:
[legend]

## Public Member Functions
| Binomial (long n, double p)
| Standard Constructor.
virtual | ~Binomial ()
| Standard Destructor.
long | nEvent () const
| Access number of events.
double | probability () const
| Access number of events.
virtual IRndmGen::Param * | clone () const
| Clone parameters.
Public Member Functions inherited from IRndmGen::Param
| Param (const InterfaceID &type=IID_IRndmFlat)
| Standard constructor.
virtual | ~Param ()
| Standard Destructor.
virtual const InterfaceID & | type () const
| Parameter's type.

## Static Public Member Functions
static const InterfaceID & | typeID ()
| Identifier for factory.

## Protected Attributes
long | m_nEvent
| Number of events the binomial destribution corresponds to.
double | m_probability
| And the probability for having success.
Protected Attributes inherited from IRndmGen::Param
const InterfaceID | m_type
| Type of the generator.

## Detailed Description

Parameters for the Binomial distributed random number generation.

The returned values are in fact integers

Definition at line 240 of file RndmGenerators.h.

## Constructor & Destructor Documentation

Rndm::Binomial::Binomial | ( | long | n,
|  | double | p
| ) |  |
| inline

Standard Constructor.

Definition at line 248 of file RndmGenerators.h.

: IRndmGen::Param(IID_IRndmBinomial), m_nEvent(n), m_probability(p) { }

virtual Rndm::Binomial::~Binomial | ( |  | ) |
| inline virtual

Standard Destructor.

Definition at line 251 of file RndmGenerators.h.

{ }

## Member Function Documentation

virtual IRndmGen::Param* Rndm::Binomial::clone | ( |  | ) | const
| inline virtual

Clone parameters.

Implements IRndmGen::Param.

Definition at line 259 of file RndmGenerators.h.

{
return new Binomial(m_nEvent, m_probability);
}

long Rndm::Binomial::nEvent | ( |  | ) | const
| inline

Access number of events.

Definition at line 253 of file RndmGenerators.h.

{ return m_nEvent; }

double Rndm::Binomial::probability | ( |  | ) | const
| inline

Access number of events.

Definition at line 255 of file RndmGenerators.h.

{ return m_probability; }

static const InterfaceID& Rndm::Binomial::typeID | ( |  | ) |
| inline static

Identifier for factory.

Definition at line 257 of file RndmGenerators.h.

{ return IID_IRndmBinomial; }

## Member Data Documentation

long Rndm::Binomial::m_nEvent
| protected

Number of events the binomial destribution corresponds to.

Definition at line 243 of file RndmGenerators.h.

double Rndm::Binomial::m_probability
| protected

And the probability for having success.

Definition at line 245 of file RndmGenerators.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/GaudiKernel/RndmGenerators.h