predict.meanshift {fdm2id} | R Documentation |
Predict function for MeanShift
Description
Return the closest MeanShift cluster for a new dataset.
Usage
## S3 method for class 'meanshift'
predict(object, newdata, ...)
Arguments
object |
The classification model (created by |
newdata |
A new dataset (a |
... |
Other parameters. |
See Also
Examples
## Not run:
require (datasets)
data (iris)
d = splitdata (iris, 5)
model = MEANSHIFT (d$train.x, bandwidth = .75)
predict (model, d$test.x)
## End(Not run)
[Package fdm2id version 0.9.9 Index]