funkmeans(fdobj, deriv = 1, lambda = 0, ncomp, centers, nstart = 10, store.fdobj = TRUE)"fd",
defining the set of curves being clustered.0, the curves themselves are clustered; if 1 (the default),
their first derivatives are clustered, a natural way to assign curves of
similar shape to the same cluster.pca.fd.kmeans function.Reiss, P. T., Huang, L., Chen, Y.-H., Huo, L., Tarpey, T., and Mennes, M. (2014). Massively parallel nonparametric regression, with an application to developmental brain mapping. Journal of Computational and Graphical Statistics, Journal of Computational and Graphical Statistics, 23(1), 232--248.
Tarpey, T., and Kinateder, K. K. J. (2003). Clustering functional data. Journal of Classification, 20, 93--114.
funkmeans4d
data(test)
d4 = test$d4
x = test$x
semi.obj = semipar4d(d4, ~sf(x), -5:5, data.frame(x = x))
fdobj = extract.fd(semi.obj)
fkmobj = funkmeans4d(fdobj, d4, ncomp=6, centers=3)
Run the code above in your browser using DataLab