Adds a step function to the transfer function.
This accepts a start and a stop, and then in between those points the transfer function is set to the maximum of the transfer function and the value.
Parameters : | start : float
stop : float
value : float
|
---|
Examples
Note that in this example, we have added a step function, but the Gaussian that already exists will “win” where it exceeds 0.5.
>>> tf = TransferFunction( (-10.0, -5.0) )
>>> tf.add_gaussian(-7.0, 0.01, 1.0)
>>> tf.add_step(-8.0, -6.0, 0.5)