Learn R Programming

fdars (version 0.3.3)

semimetric.pca: Semi-metric based on Principal Components

Description

Computes a semi-metric based on the first ncomp principal component scores.

Usage

semimetric.pca(fdataobj, fdataref = NULL, ncomp = 2, ...)

Value

A distance matrix based on PC scores.

Arguments

fdataobj

An object of class 'fdata'.

fdataref

An object of class 'fdata'. If NULL, uses fdataobj.

ncomp

Number of principal components to use.

...

Additional arguments (ignored).

Examples

Run this code
fd <- fdata(matrix(rnorm(200), 20, 10))
D <- semimetric.pca(fd, ncomp = 3)

Run the code above in your browser using DataLab