random_distributions.py File Reference

Go to the source code of this file.


Classes

class  random_distributions.XYResponseCurve
 Similar to ResponseCurve, but allows sample points to be unevenly spaced. More...
class  random_distributions.ResponseCurve
 This class is described in AI Programming Wisdom 1, "The Beauty of Response Curves", by Bob Alexander. More...
class  random_distributions.NormalisedInputCurve
class  random_distributions.Distribution2D
 This is a callable class that generates random numbers with an arbitrary distribution. More...

Packages

package  random_distributions
 This module provides functionality to generate random numbers with arbitrary distributions.

Functions

def random_distributions.lerp
 Linear interpolation, with clamping for inputs outside the range.
def random_distributions.sigmoid
 This function is a "soft" version of lerp.
def random_distributions.ramp
 The same as lerp, except that the output is extrapolated, not clamped when the input is higher than the maximum.
def random_distributions.line
 The same as lerp, except that output is linearly extrapolated when the input falls outside the range on both ends.
def random_distributions.make_distribution_curve
 Makes a distribution curve from input and output samples.
def random_distributions.distribution_from_grid

Variables

int random_distributions.newSampleCount = 1000
float random_distributions.THRESHOLD = 0.001


Generated on Sun May 24 21:48:21 2009 by  doxygen 1.5.8