knn_elements: Creates a matrix to be used for calculating distances. The...

Description Usage Arguments Value

View source: R/knn_elements.R

Description

Creates a matrix to be used for calculating distances. The most recent 'element' is put in the first row of the matrix, the second most recent 'element' in the second row and so on. Therefore, the oldest 'element' is put in the last row.

Usage

1

Arguments

y

A matrix.

d

Length of each of the 'elements'.

Value

A matrix to be used for calculating distances.


knnp documentation built on Jan. 11, 2020, 9:26 a.m.

Related to knn_elements in knnp...