TransferFunction.
add_line
(start, stop)[source]¶Add a line between two points to the transmission function.
This will accept a starting point in (x,y) and an ending point in (x,y) and set the values of the transmission function between those x-values to be along the line connecting the y values.
Parameters: | start : tuple of floats
stop : tuple of floats
|
---|
Examples
This will set the transfer function to be linear from 0.0 to 1.0, across the bounds of the function.
>>> tf = TransferFunction( (-10.0, -5.0) )
>>> tf.add_line( (-10.0, 0.0), (-5.0, 1.0) )