~ Package: kmlShape ~
KmlShape is a package design to cluster longitudinal data according to their shape.
kmlShape cluster longitudinal data according to their shape: instead of merging individual whose trajectories are closed in term of euclidienne distance, it groups the individual that are closed according Frechet's distance.
Since k-means using Frechet has a complexity in O(n^2t^2), KmlShape also provide some function to reduce the size of the data without changing the result:
reduceNbIdreduce the number of individual, by merging them using a classical k-means on many centers.
reduceNbTimesreduce the number of measurement, by (optionaly) smoothing the curve then by applying the Douglas-Peuker algorithms.
Christophe Genolini <email@example.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.