dispel.signal.geometric module#
signal.geometric module.
A module containing common operations on different geometries.
- dispel.signal.geometric.downsample_dataset(data, ratio_freq=0.5)[source]#
Downsample the dataset to a fraction of original frequency.
- dispel.signal.geometric.draw_circle(length=100, radius=1)[source]#
Draw a circle from polar to cartesian coordinates.
- dispel.signal.geometric.draw_ellipse(length=100, a=1, b=2)[source]#
Draw a circle from polar to cartesian coordinates.
- dispel.signal.geometric.extract_ellipse_axes(comps)[source]#
Extract length of the axes of an ellipse covering 95-percentile of data.
- dispel.signal.geometric.extract_ellipse_dir_vectors(comps)[source]#
Extract eigen-director vectors of ellipse representing the data.
- Parameters:
comps (DataFrame) – A pd.DataFrame with a 2-dimensional timeseries
- Returns:
- Tuple containing:
- v1_v_hatnp.array
An array with the first PCA eigenvector
- v2_v_hatnp.array
An array with the second PCA eigenvector
- Return type:
Union[array, array]
- dispel.signal.geometric.synthetic_outliers(x, y, ratio_outlier)[source]#
Generate outliers for a point cloud.
- Parameters:
- Return type:
A tuple with two coordinates of the point cloud with outliers