kNN: Nearest neighbor

Description Usage Arguments Details Value

View source: R/nn.R

Description

An auxiliary function to find the nearest neighbors from the distance matrix

Usage

1
kNN(model, k)

Arguments

model

nearest neighbor ranking model

k

number of the nearest neighbors to consider

Details

This function is applied to find the nearest neighbors in the distance matrix.

Value

a vector of length of model


labelrank documentation built on May 2, 2019, 11:10 a.m.