PchipRamp#
- class PchipRamp(options)#
Bases:
PchipPulsePchipRampgenerates a ramp with PCHIP-shaped edges.Creates a waveform that transitions from a start value to a stop value over a specified ramp time, with smooth PCHIP transitions on the edges. Inherits from
PchipPulse.Example1:
% Basic PCHIP ramp ramp = PchipRamp(startValue = 0, stopValue = 5, rampTime = 0.01); ramp.plot();
Example2:
% Negative PCHIP ramp ramp = PchipRamp(startValue = 10, stopValue = 0, rampTime = 0.005); ramp.plot();
- Constructor Summary
- PchipRamp(options)#
Construct a
PchipRampobject.- 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.