Uniform
index
/Users/amos/Documents/Database/Mental/Programming/python/lib/avatar/Personal2/www.amos/Python/lib/mathlib/Probability/Uniform.py

Uniform.py implements the uniform distribution.

 
Classes
       
Probability.Probability
Uniform

 
class Uniform(Probability.Probability)
    The uniform probability law on the interval [0, 1].
 
Use Affine(Uniform(), a, b) for the uniform law on the interval [a, a+b], where 0 < b.
 
  Methods defined here:
Density(self, xX)
Distribution(self, xX)
InverseDistribution(self, xY)
Sample(self)
getMean(self)
getVariance(self)

Methods inherited from Probability.Probability:
DensityTest(self, xX, **dArgs)
Compare the Density() with the numerically differentiated Distribution().
 
This doesn't make much sense in the abstract base class. But in general, the Density() method will be redefined, and this will be a real test.
InverseTest(self, xY, **dArgs)
Run a y value through InverseDistribution and then through Distribution, and compare the results.
__repr__(self)
__str__(self)
getIQR(self)
getMedian(self)
getStDev(self)
html(self)

 
Functions
       
random(...)
random() -> x in the interval [0, 1).