-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.Rmd
46 lines (31 loc) · 976 Bytes
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
output: github_document
---
```{r echo=FALSE, results = 'asis'}
pkg <- 'streamMOA'
source("https://raw.githubusercontent.com/mhahsler/pkg_helpers/main/pkg_helpers.R")
pkg_title(pkg)
```
Interface for data stream clustering algorithms implemented in the MOA (Massive Online Analysis) framework. This is an extension package for [stream](https://github.com/mhahsler/stream).
```{r echo=FALSE, results = 'asis'}
pkg_install(pkg)
```
## Example
Create 3 clusters with 5% noise.
```{r}
library(streamMOA)
stream <- DSD_Gaussians(k=3, d=2, noise=.05)
```
Cluster with CluStream.
```{r}
clustream <- DSC_CluStream(m = 50, k = 3)
update(clustream, stream, 500)
clustream
```
Plot micro-clusters.
```{r plot}
plot(clustream, stream)
```
## Further Information
* [streamMOA package vignette](https://CRAN.R-project.org/package=streamMOA/vignettes/streamMOA.pdf) with complete examples.
* [Reference manual](https://CRAN.R-project.org/package=streamMOA/streamMOA.pdf)