mappy_ds.TrajectorySegment#

class mappy_ds.TrajectorySegment(mode, kind, y, t=None)#

The part of a trajectory spent in a single mode.

Attributes:
modestr

Name of the mode.

kind{“continuous”, “discrete”}

Whether the segment comes from an ODE flow or a discrete map.

ynumpy.ndarray

Sampled states, shape (dim, n_points). A discrete segment holds the two points before and after the map.

tnumpy.ndarray or None

Sampling times relative to the start of the segment, shape (n_points,). None for discrete segments.

Properties

dim

Dimension of the state space of the segment.