NNS.distance: NNS Distance

View source: R/NNS_Distance.R

NNS.distanceR Documentation

NNS Distance

Description

Internal kernel function for NNS multivariate regression NNS.reg parallel instances.

Usage

NNS.distance(rpm, dist.estimate, type, k, class)

Arguments

rpm

REGRESSION.POINT.MATRIX from NNS.reg

dist.estimate

Vector to generate distances from.

type

"L1", "L2" or "FACTOR"

k

n.best from NNS.reg

class

if classification problem.

Value

Returns sum of weighted distances.


NNS documentation built on Nov. 28, 2023, 1:10 a.m.