update() for data stream mining tasks DST.
Arguments
- object
The DST object.
- dsd
A DSD object with the data stream.
- n
number of points from
dsdto use for the update. Some DSDdsdacceptn = -1to update with all remaining points in the stream.- return
a character string indicating what update returns. The default is
"nothing". Other possible values depend on theDST. Examples are"data","model"and"assignment".- ...
Additional arguments are passed on.
Examples
set.seed(1500)
stream <- DSD_Gaussians(k = 3, d = 2, noise = .1)
dbstream <- DSC_DBSTREAM(r = .1)
assignment <- update(dbstream, stream, n = 100, return = "assignment")
plot(dbstream, stream, type = "both")
# DBSTREAM returns cluster assignments (see DSC_DBSTREAM).
head(assignment)
#> .class .mc_id
#> 1 1 1
#> 2 2 2
#> 3 2 2
#> 4 3 3
#> 5 4 4
#> 6 5 5