View source: R/KNN_classifier_with_custom_distance_function.R
nearest_neighbors | R Documentation |
NEAREST NEIGHBORS
nearest_neighbors(x, obs, k, FUN, p = NULL)
x |
an nxm matrix where each row is a reference time series. There are n series of length m. |
obs |
a 1Xm matrix that represents a series of length m which we want to classify by comparing with the reference series. |
k |
number of nearest neighbors |
FUN |
distance measure. |
p |
some extra parameter of the FUN function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.