random_distributions.Distribution2D Class Reference

This is a callable class that generates random numbers with an arbitrary distribution. More...

List of all members.

Public Member Functions

def __init__
def __call__
def make_distribution

Public Attributes

 min_y
 max_y
 height
 y_curves


Detailed Description

This is a callable class that generates random numbers with an arbitrary distribution.

The distribution is specified with a matrix that denotes relative probabilities of a point being chosen from the cell. For example, the matrix [[1 2][1 1]] indicates that twice as many points will be chosen from the one corner cell than any other.

Definition at line 262 of file random_distributions.py.


Member Function Documentation

def random_distributions.Distribution2D.__call__ (   self,
  rx,
  ry 
)

Definition at line 274 of file random_distributions.py.

def random_distributions.Distribution2D.__init__ (   self,
  prob_matrix,
  min_corner,
  max_corner 
)

Definition at line 267 of file random_distributions.py.

def random_distributions.Distribution2D.make_distribution (   self,
  matrix 
)

Definition at line 282 of file random_distributions.py.


Member Data Documentation

Definition at line 270 of file random_distributions.py.

Definition at line 269 of file random_distributions.py.

Definition at line 268 of file random_distributions.py.

Definition at line 272 of file random_distributions.py.


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

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