Function project_trajectory_2d

Source
pub fn project_trajectory_2d(
    trajectory: &[(i64, &[f32])],
) -> Result<Vec<ProjectedPoint>, AnalyticsError>
Expand description

Project a trajectory to 2D using PCA.

Computes the two principal components of the trajectory vectors and projects each point onto them.