random_distributions.ResponseCurve Class Reference

This class is described in AI Programming Wisdom 1, "The Beauty of Response Curves", by Bob Alexander. More...

List of all members.

Public Member Functions

def __init__
 Constructs a new TransferFunction.
def __call__
def getInputMin
def getInputMax

Public Attributes

 inputMin
 inputMax
 count
 period
 outputSamples


Detailed Description

This class is described in AI Programming Wisdom 1, "The Beauty of Response Curves", by Bob Alexander.

Essentailly, this class provides a look-up table with linear interpolation for arbitrary functions.

Parameters:
n Number of output samples.
T The number type of the input and output, usually float or double.

Definition at line 145 of file random_distributions.py.


Member Function Documentation

def random_distributions.ResponseCurve.__call__ (   self,
  input 
)

Definition at line 179 of file random_distributions.py.

def random_distributions.ResponseCurve.__init__ (   self,
  inputMin,
  inputMax,
  outputSamples 
)

Constructs a new TransferFunction.

Parameters:
inputMin The minimum value an input can be.
inputMax The maximum value an input can be.
outputSamples Samples of outputs.

Definition at line 156 of file random_distributions.py.

def random_distributions.ResponseCurve.getInputMax (   self  ) 

Definition at line 195 of file random_distributions.py.

def random_distributions.ResponseCurve.getInputMin (   self  ) 

Definition at line 192 of file random_distributions.py.


Member Data Documentation

Definition at line 159 of file random_distributions.py.

Definition at line 158 of file random_distributions.py.

Definition at line 157 of file random_distributions.py.

Definition at line 162 of file random_distributions.py.

Definition at line 160 of file random_distributions.py.


The documentation for this class was generated from the following file:

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