Class DynamicTimeWarp
Defined in File DynamicTimeWarp.h
Class Documentation
-
class DynamicTimeWarp
Public Functions
-
explicit DynamicTimeWarp(base::SpaceInformationPtr si)
-
double calcDTWDistance(const og::PathGeometric &path1, const og::PathGeometric &path2) const
Use Dynamic Timewarping to score two paths.
- Parameters:
path1 –
path2 –
- Returns:
score
-
double getPathsScore(const og::PathGeometric &path1, const og::PathGeometric &path2) const
Use dynamic time warping to compare the similarity of two paths Note: this will interpolate both of the paths and it returns the change by reference Note: before calling this function you might want to reverse one of the paths so that their start and goals are property aligned (and match better)
- Parameters:
path1 –
path2 –
- Returns:
score
-
explicit DynamicTimeWarp(base::SpaceInformationPtr si)