stream (version 1.3-0)

save: Save and Read DSC Objects

Description

Save and Read DSC objects savely (serializes the underlying data structure). This also works for streamMOA DSC objects.

Usage

saveDSC(object, file, ...)
readDSC(file)

Arguments

object

a DSC object.

file

filename.

...

further arguments.

See Also

saveRDS and readRDS.

Examples

Run this code
# NOT RUN {
stream <- DSD_Gaussians(k = 3, noise = 0.05)

# create clusterer with r = 0.05
dbstream1 <- DSC_DBSTREAM(r = .05)
update(dbstream1, stream, 1000)
dbstream1

saveDSC(dbstream1, file="dbstream.Rds")

dbstream2 <- readDSC("dbstream.Rds")
dbstream2

## cleanup
unlink("dbstream.Rds")
# }

Run the code above in your browser using DataCamp Workspace