pytvx.TvfRamp

class pytvx.TvfRamp(f0: Union[float, Tvf, PyTvf] = 0.0, f1: Union[float, Tvf, PyTvf] = 1.0, x0: float = 0.0, width: float = 1.0)[source]

Bases: pytvx.PyTvf

A PyTvf that implements a linear ramp from an initial value at an initial time to a final value at a final time.

For details and examples, see tvx: An Introduction.

Parameters
  • f0 – The initial value.

  • f1 – The final value.

  • x0 – This initial time.

  • width – The width of the ramp. The final time is thus x0 + width.

Methods

indent_repr

__call__(t: float) float[source]

Compute the floating point value of this object at a given time.

Parameters

t – The time at which to evaluate.

Returns

The value at time t.

Return type

float