pcasf: Compare matrices using PCA similarity factor

Description Usage Arguments Value Author(s) References Examples

View source: R/globalstd.R

Description

Compare matrices using PCA similarity factor

Usage

1
pcasf(x, y, dim = NULL)

Arguments

x

Matrix with sample in column and features in row

y

Matrix is compared to x.

dim

number of retained dimensions in the comparison. Defaults to all.

Value

Ratio of projected variance to total variance

Author(s)

Edgar Zanella Alvarenga

References

Singhal, A. and Seborg, D. E. (2005), Clustering multivariate time-series data. J. Chemometrics, 19: 427-438. doi: 10.1002/cem.945

Examples

1
2
3
c1 <- matrix(rnorm(16),nrow=4)
c2 <- matrix(rnorm(16),nrow=4)
pcasf(c1, c2)

pmd documentation built on Jan. 22, 2021, 1:06 a.m.