random_distributions.XYResponseCurve Class Reference

Similar to ResponseCurve, but allows sample points to be unevenly spaced. More...

List of all members.

Public Member Functions

def __init__
 Construct a new XYResponse curve from input and output samples.
def __call__
 If the input is below the inputMin given in the constructor, the output is clamped to the first output sample.
def makeInverse
def findInputIndex
 : only made public for testing! Test which input sample lies to the left of the given input.

Public Attributes

 count
 inputSamples
 outputSamples


Detailed Description

Similar to ResponseCurve, but allows sample points to be unevenly spaced.

This curve is slower than the ordinary ResponseCurve. However, it is useful for generating the inverse of a monotonic function. For rapid access, this curve should be sampled into a ordinary ResponseCurve.

Definition at line 61 of file random_distributions.py.


Member Function Documentation

def random_distributions.XYResponseCurve.__call__ (   self,
  input 
)

If the input is below the inputMin given in the constructor, the output is clamped to the first output sample.

Definition at line 94 of file random_distributions.py.

def random_distributions.XYResponseCurve.__init__ (   self,
  inputSamples,
  outputSamples 
)

Construct a new XYResponse curve from input and output samples.

Parameters:
inputSamples The input values for this response curve. Must be strictly increasing.
outputSamples The output vlaues for this curve.

Definition at line 69 of file random_distributions.py.

def random_distributions.XYResponseCurve.findInputIndex (   self,
  input 
)

: only made public for testing! Test which input sample lies to the left of the given input.

Definition at line 122 of file random_distributions.py.

def random_distributions.XYResponseCurve.makeInverse (   self  ) 

Definition at line 115 of file random_distributions.py.


Member Data Documentation

Definition at line 70 of file random_distributions.py.

Definition at line 75 of file random_distributions.py.

Definition at line 76 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