predict.dbs {fdm2id} | R Documentation |
Predict function for DBSCAN
Description
Return the closest DBSCAN cluster for a new dataset.
Usage
## S3 method for class 'dbs'
predict(object, newdata, ...)
Arguments
object |
The classification model (of class |
newdata |
A new dataset (a |
... |
Other parameters. |
See Also
Examples
require (datasets)
data (iris)
d = splitdata (iris, 5)
model = DBSCAN (d$train.x, minpts = 5, eps = 0.65)
predict (model, d$test.x)
[Package fdm2id version 0.9.9 Index]