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

the Gaussian distribution, in standard and general form

 
Classes
       
Probability.Affine(Probability.Probability)
Gaussian
Probability.Probability
StdGaussian

 
class Gaussian(Probability.Affine)
    
Method resolution order:
Gaussian
Probability.Affine
Probability.Probability

Methods defined here:
__init__(self, xMu=0.0, xSigma=1.0)
__repr__(self)

Methods inherited from Probability.Affine:
Affine(self, xZ)
Density(self, x)
Distribution(self, x)
InverseDistribution(self, y)
Sample(self)
Standardize(self, xX)
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.
__str__(self)
getIQR(self)
getMedian(self)
getStDev(self)
html(self)

 
class StdGaussian(Probability.Probability)
     Methods defined here:
Density(self, xX)
Distribution(self, xX)
InverseDistribution(self, xY, xEpsilon=9.9999999999999995e-08)
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
       
exp(...)
exp(x)
 
Return e raised to the power of x.
sqrt(...)
sqrt(x)
 
Return the square root of x.

 
Data
        pi = 3.1415926535897931