TanhRamp#
- class TanhRamp(options)#
Bases:
TanhPulseTanhRampgenerates a ramp with tanh-shaped edges.Creates a waveform that transitions from a start value to a stop value over a specified ramp time, with smooth tanh transitions on the edges. Inherits from
TanhPulse.Example1:
% Basic tanh ramp ramp = TanhRamp(startValue = 0, stopValue = 5, rampTime = 0.01); ramp.plot();
Example2:
% Negative tanh ramp ramp = TanhRamp(startValue = 10, stopValue = 0, rampTime = 0.005); ramp.plot();
- Constructor Summary
- TanhRamp(options)#
Construct a
TanhRampobject.- Parameters:
samplingRate (
double, optional) – Sampling rate in Hz (default: [])startTime (
double, optional) – Start time in seconds (default: 0)duration (
double, optional) – Total duration in seconds (default: [])startValue (
double, optional) – Initial ramp value (default: 0)stopValue (
double, optional) – Final ramp value (default: 0)rampTime (
double, optional) – Ramp duration in seconds (default: 0)
- Property Summary
- RampTime double = 0#
Duration of the ramp transition in seconds.
- StartValue double = 0#
Initial value of the ramp.
- StopValue double = 0#
Final value of the ramp.