View source: R/event_functions_2d.R
get_clusters | R Documentation |
This function extracts events from a two-dimensional (1 spatial x 1 time) data stream.
get_clusters( dat, filename = NULL, thres = 0.95, vis = FALSE, epsilon = 5, miniPts = 10, rolling = TRUE )
dat |
The data matrix |
filename |
If set, the figure of extracted events are saved in this name. The |
thres |
The cut-off quantile. Default is set to |
vis |
If |
epsilon |
The |
miniPts |
The |
rolling |
This parameter is set to |
A list with following components
|
The cluster assignment according to DBSCAN output. |
|
The data of this cluster assignment. |
out <- gen_stream(2, sd=15) zz <- as.matrix(out$data) clst <- get_clusters(zz, vis=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.