NNS.distance: NNS Distance

Description Usage Arguments Value

View source: R/NNS_Distance.R

Description

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

Usage

1
NNS.distance(rpm, rpm_class, dist.estimate, type, k, n)

Arguments

rpm

REGRESSION.POINT.MATRIX from NNS.reg

rpm_class

integer rpm.

dist.estimate

Vector to generate distances from.

type

"L1", "L2", "DTW" or "FACTOR"

k

n.best from NNS.reg

n

number of observations.

Value

Returns sum of weighted distances.


NNS documentation built on June 26, 2021, 1:07 a.m.