getKNN: getKNN

Description Usage Arguments Author(s)

Description

Calculates Euclidean distance in PCA space.

Usage

1
getKNN(pca, pcs, k)

Arguments

pca

Matrix; Principal components as columns, samples as rows.

pcs

Integer; Length 1 vector indicating the max principal component to retain.

k

Integer; Number of nearest neighbors.

Author(s)

Jason T. Serviss


EngeLab/kNNclassification documentation built on May 5, 2019, 9:43 p.m.