| Trees | Indices | Help |
|
|---|
|
|
Python's random module provides the Random class, which can be instantiated to give an object that can be asked to generate numbers from any of several different random distributions (e.g. uniform, Gaussian).
To make it easier to use these, Topographica provides here a hierarchy of classes, each tied to a particular random distribution. This allows setting parameters on creation rather than passing them each call, and allows pickling to work properly.
The underlying random.Random() instance and all its methods can be accessed from the 'random_generator' attribute.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
__abstract = Truebool(x) -> bool |
|||
name = <param.parameterized.String object at 0xb1ff42c>String identifier for this object. |
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Initialize a new Random() instance and store the supplied positional and keyword arguments. If seed=X is specified, sets the Random() instance's seed. Otherwise, calls the instance's jumpahead() method to get a state very likely to be different from any just used.
|
|
|
|||
__abstractbool(x) -> bool Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Aug 5 14:59:39 2010 | http://epydoc.sourceforge.net |