class TrajectoriesDataset

class deeptime.util.data.TrajectoriesDataset(data: List[TrajectoryDataset])

Dataset composed of multiple trajectories.

Parameters:

data (list of TrajectoryDataset) – The trajectories in form of trajectory datasets.

See also

TrajectoryDataset.from_trajectories

Method to create a TrajectoriesDataset from multiple raw data trajectories.

Attributes

lagtime

The lagtime.

subsets

Returns the list of datasets this concat dataset is composed of.

trajectories

Contained raw trajectories.

Methods

from_numpy(lagtime, data)

Creates a time series dataset from multiples trajectories by applying a lagtime.

setflags([write])

Set writeable flags for contained arrays.

static from_numpy(lagtime, data: List[ndarray])

Creates a time series dataset from multiples trajectories by applying a lagtime.

Parameters:
  • lagtime (int) – Lagtime, must be positive. The effective size of the dataset reduces by the selected lagtime.

  • data (list of ndarray) – List of trajectories.

Returns:

dataset – Concatenation of timeseries datasets.

Return type:

TrajectoriesDataset

Raises:

AssertionError – If data is empty, lagtime is not positive, the shapes do not match, or lagtime is too long for any of the trajectories.

setflags(write=True)

Set writeable flags for contained arrays.

property lagtime

The lagtime.

Type:

int

property subsets

Returns the list of datasets this concat dataset is composed of.

Type:

list of dataset

property trajectories

Contained raw trajectories.

Type:

list of ndarray