Description Details Author(s) Examples
KmlShape is a package design to cluster longitudinal data according to their shape.
Package:  KmlShape 
Type:  Package 
Version:  0.9.5 
Date:  20160304 
License:  GPL >2.0 
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 kmeans 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:
reduceNbId
reduce the number of individual, by
merging them using a classical kmeans on many centers.
reduceNbTimes
reduce the number of measurement, by
(optionaly) smoothing the curve then by applying the DouglasPeuker
algorithms.
Christophe Genolini <[email protected]>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  #########
### Real example, on ictus data
### Preparing the data
set.seed(1)
data(ictusShort)
myClds < cldsWide(ictusShort)
### Reducing the data size
reduceTraj(myClds,nbSenators=64,nbTimes=5)
### Clustering using shape
kmlShape(myClds,4)
plotMeans(myClds)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.