funkmeans(obj, which.smooth = 1, deriv = 1, lambda = 0, ncomp, centers, nstart = 10)semipar.mp.obj consists of fits of the model ~ sf(x1) + sf(x2), which.smooth = 2 yields k-means clustering for the curves with respect to x2. The de0, 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.kmeans.fd) for the curves that are clustered.pca.fd.which.smooth in the function call.funkmeans4d, funkpanel