powered by
Computes a semi-metric based on the first ncomp principal component scores.
semimetric.pca(fdataobj, fdataref = NULL, ncomp = 2, ...)
A distance matrix based on PC scores.
An object of class 'fdata'.
An object of class 'fdata'. If NULL, uses fdataobj.
Number of principal components to use.
Additional arguments (ignored).
fd <- fdata(matrix(rnorm(200), 20, 10)) D <- semimetric.pca(fd, ncomp = 3)
Run the code above in your browser using DataLab