Skip to contents

K-nearest Neighbors

Usage

knn(train, test, cl, k = 1)

Arguments

train

matrix

test

test

cl

y

k

number of clusters

Value

result

Examples

if (FALSE) { # \dontrun{
knn(train, test, cl, k=2)
} # }