NN.K {CPEg}R Documentation

Test class, utility function

Description

Finding whether predicted class is equal to test class. This is needed for function OptimalK.

Usage

NN.K(K, x, cl)

Arguments

K The nearest neighbor value to be taken
x data frame or matrix
cl defining y vector taking values -1 and 1 for two classes

Details

Value

test result, a logical value

Author(s)

Shahidul Islam

See Also

OptimalK

Examples






[Package CPEg version 1.1 Index]