N2: Ratio of Average Intra/Inter Class NN Distance.

Description Usage Arguments Value

Description

N2 computes the average intra-class and average inter-class distance of the 1-NN, and returns the intra/inter ratio.

Usage

1
N2(x, y)

Arguments

x

A data frame, or an object that can be converted to a data frame, containing only the features of the data.

y

A vector (or factor) determining the class of each example in the data.

Value

The ratio between the average intra-class and average inter-class 1-NN Euclidian distance.


RomeroBarata/dcme documentation built on May 9, 2019, 2:24 p.m.