Description Usage Arguments Value Author(s) Examples
Fits trajectory data into a K-nearest neighbors classifier using leave one out cross validation.
1 | fitModelKNN_CV(trajDataFrame, labelVector, kVal)
|
trajDataFrame |
A data frame with measures for each trajectory. This can be produced by function trajMeasures |
labelVector |
A vector of labels for each trajectory. Its length must be equal to the number of rows in trajDataFrame |
kVal |
The number of neighbors used for classification |
A vector of classified labels for each trajectory
Ayan Bandyopadhyay, Bellarmine College Prep 11/26/2015
1 2 3 | data <- as.data.frame(matrix(1:4,nrow = 2,ncol = 2))
labels <- c("live","dead")
classifierKNN_CV<- fitModelKNN_CV(data,labels,3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.