numpy.oldnumeric.rng
index
/usr/lib/python2.6/dist-packages/numpy/oldnumeric/rng.py

# This module re-creates the RNG interface from Numeric
# Replace import RNG with import numpy.oldnumeric.rng as RNG
#
# It is for backwards compatibility only.

 
Modules
       
math
numpy.random.mtrand

 
Classes
       
object
CreateGenerator
Distribution
ExponentialDistribution
LogNormalDistribution
NormalDistribution
UniformDistribution
Exception(BaseException)
error

 
class CreateGenerator(object)
     Methods defined here:
__init__(self, seed, dist=None)
ranf(self)
sample(self, n)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Distribution(object)
     Methods defined here:
__call__(self, x)
__init__(self, meth, *args)
density(self, x)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class ExponentialDistribution(Distribution)
    
Method resolution order:
ExponentialDistribution
Distribution
object

Methods defined here:
__init__(self, lambda_)
density(x)

Methods inherited from Distribution:
__call__(self, x)

Data descriptors inherited from Distribution:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class LogNormalDistribution(Distribution)
    
Method resolution order:
LogNormalDistribution
Distribution
object

Methods defined here:
__init__(self, m, s)
density(x)

Methods inherited from Distribution:
__call__(self, x)

Data descriptors inherited from Distribution:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class NormalDistribution(Distribution)
    
Method resolution order:
NormalDistribution
Distribution
object

Methods defined here:
__init__(self, m, s)
density(x)

Methods inherited from Distribution:
__call__(self, x)

Data descriptors inherited from Distribution:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class UniformDistribution(Distribution)
    
Method resolution order:
UniformDistribution
Distribution
object

Methods defined here:
__init__(self, a, b)
density(x)

Methods inherited from Distribution:
__call__(self, x)

Data descriptors inherited from Distribution:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class error(Exception)
    
Method resolution order:
error
Exception
BaseException
object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from Exception:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from Exception:
__new__ = <built-in method __new__ of type object at 0x8108c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from BaseException:
__dict__
args
message

 
Functions
       
random_sample(*n)
random_sample(n) = array of n random numbers;
 
random_sample(n1, n2, ...)= random array of shape (n1, n2, ..)
ranf()
ranf() = a random number from the standard generator.

 
Data
        __all__ = ['CreateGenerator', 'ExponentialDistribution', 'LogNormalDistribution', 'NormalDistribution', 'UniformDistribution', 'error', 'ranf', 'default_distribution', 'random_sample', 'standard_generator']
__file__ = '/usr/lib/python2.6/dist-packages/numpy/oldnumeric/rng.pyc'
__name__ = 'numpy.oldnumeric.rng'
__package__ = 'numpy.oldnumeric'
default_distribution = <numpy.oldnumeric.rng.UniformDistribution object at 0x719f210>
standard_generator = <numpy.oldnumeric.rng.CreateGenerator object at 0x719f310>