Description Details Author(s) See Also Examples
Package for modified nearest-neighbor classification based on calculation of a similarity threshold distinguishing within-group from between-group comparisons.
Package: | clst |
Type: | Package |
License: | GPL-3 |
Author: | Noah Hoffman <ngh2@uw.edu> |
Index:
Further information is available in the following vignettes:
clstDemo | clst (source, pdf) |
TODO: write package overview.
Noah Hoffman
Maintainer: <ngh2@uw.edu>
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(clst)
packageDescription("clst")
data(iris)
dmat <- as.matrix(dist(iris[,1:4], method="euclidean"))
groups <- iris$Species
i <- 1
cc <- classify(dmat, groups, dvect=dmat[i,])
cat('query at i =',i,'is species',paste('I.', groups[i]),'\n')
printClst(cc)
i <- 125
cc <- classify(dmat, groups, dvect=dmat[i,])
cat('query at i =',i,'is species',paste('I.', groups[i]),'\n')
printClst(cc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.