soft4pes.utils.sequence#

Sequence class can be used to generate a sequence of values over time.

Classes#

Sequence

Sequence class can be used to generate a sequence of values over time.

Module Contents#

class soft4pes.utils.sequence.Sequence(times, values)[source]#

Sequence class can be used to generate a sequence of values over time.

The time array must be increasing. The output values are interpolated between the data points.

Parameters:
  • times (n x 1 ndarray of floats) – Time instants is seconds.

  • values (n x m ndarray of floats) – Output values.

times[source]#

Time instants is seconds.

Type:

n x 1 ndarray of floats

values[source]#

Output values.

Type:

n x m ndarray of floats

__call__(kTs)[source]#

Interpolate the output.

Parameters:

kTs (float) – Current discrete time instant [s].

Returns:

Interpolated output.

Return type:

1 x m ndarray of floats