Package topo :: Package numbergen
[hide private]
[frames] | no frames]

Package numbergen

source code

Callable objects that generate numbers according to different distributions.

$Id: __init__.py 9019 2008-08-27 13:37:29Z jbednar $


Version: $Revision: 8943 $

Submodules [hide private]
  • topo.numbergen.basic: A collection of classes that, when called, generate numbers according to different distributions (e.g.

Classes [hide private]
  BinaryOperator
Applies any binary operator to NumberGenerators or numbers to yield a NumberGenerator.
  BoundedNumber
Function object that silently enforces numeric bounds on values returned by a callable object.
  Choice
Return a random element from the specified list of choices.
  ExponentialDecay
Function object that provides a value that decays according to an exponential function, based on topo.sim.time().
  NormalRandom
Normally distributed (Gaussian) random number.
  NumberGenerator
Abstract base class for any object that when called produces a number.
  RandomDistribution
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.
  UnaryOperator
Applies any unary operator to a NumberGenerator to yield another NumberGenerator.
  UniformRandom
Specified with lbound and ubound; when called, return a random number in the range [lbound, ubound).
  UniformRandomInt
Specified with lbound and ubound; when called, return a random number in the inclusive range [lbound, ubound].
  VonMisesRandom
Circularly normal distributed random number.