Package non_uniform_random_int

Provides functionality for generating non-uniform random integers. More...


Classes

class  NonUniformRandomInt
 Class for generating random integers between 0 (inclusive) and and upperbound (exlusive), with given probabilities. More...

Functions

def calc_expected
 Calculates the expected average for a list of probabilities.
def demo_NonUniformRandomInt
 Demonstrates the usage of NonUniformRandomInt.

Variables

float FLOAT_ERROR = 0.000001


Detailed Description

Provides functionality for generating non-uniform random integers.


Function Documentation

def non_uniform_random_int.calc_expected (   probs_list  ) 

Calculates the expected average for a list of probabilities.

Used by the demo.

Definition at line 110 of file non_uniform_random_int.py.

def non_uniform_random_int.demo_NonUniformRandomInt (  ) 

Demonstrates the usage of NonUniformRandomInt.

Definition at line 118 of file non_uniform_random_int.py.


Variable Documentation

Definition at line 9 of file non_uniform_random_int.py.


Generated on Sun May 24 21:48:22 2009 by  doxygen 1.5.8