Public Member Functions

discrete Class Reference

#include <simulator.h>

Inheritance diagram for discrete:
simulator< int >

List of all members.

Public Member Functions

 discrete (const std::vector< double > &p)
double pdf (const int) const
double cdf (const int) const
int random () const

Detailed Description

A discrete random number generator.


Constructor & Destructor Documentation

discrete::discrete ( const std::vector< double > &  p  ) 

Member Function Documentation

double discrete::cdf ( const int  k  )  const
double discrete::pdf ( const int  k  )  const
int discrete::random (  )  const [virtual]

Implements simulator< int >.


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