States subsamplers module

class sekupy.analysis.states.subsamplers.SpeedSubsampler(peak='min', order=5, distance='euclidean')[source]
fit(ds)[source]

From the data it extract the points with low local velocity and returns the arguments of these points and the speed for each point.

class sekupy.analysis.states.subsamplers.Subsampler(peak, order)[source]
transform(ds)[source]

Transform the provided dataset.

This method applies the transformation to the dataset and records the transformation in the dataset’s preprocessing history.

Parameters:

ds (Dataset) – The dataset to transform

Returns:

The transformed dataset

Return type:

Dataset

class sekupy.analysis.states.subsamplers.VarianceSubsampler(peak='max', order=5)[source]
transform(ds)[source]

Transform the provided dataset.

This method applies the transformation to the dataset and records the transformation in the dataset’s preprocessing history.

Parameters:

ds (Dataset) – The dataset to transform

Returns:

The transformed dataset

Return type:

Dataset

sekupy.analysis.states.subsamplers.greater_equal(x1, x2)[source]
sekupy.analysis.states.subsamplers.less_equal(x1, x2)[source]