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 | |
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.
| 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.
| 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.
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.
1.5.8