remove_cluster: Remove Moving Generator Cluster

Description Usage Arguments Details See Also Examples

View source: R/DSD_MG.R

Description

Removes a MGC to a DSD_MG.

Usage

1
2

Arguments

x

the DSD_MG object

i

the index of the MGC that will be removed

Details

This allows a user to remove a MGC from a DSD_MG.

See Also

DSD_MG for details on how to use it with a DSD

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
  dsd <- DSD_MG()
  
  c1 <- MGC_Random(c(50,50),1,1,1)
  
  #adding noise
  c2 <- MGC_Noise(1,c(-20,120,-20,120))
  
  add_cluster(dsd,c1)
  add_cluster(dsd,c2)
  
  #removes noise
  remove_cluster(dsd,2)
  
  ## Not run: 
  animate_data(dsd,2500,xlim=c(0,100),ylim=c(0,100))
  
## End(Not run)
  

streamMovingGenerator documentation built on May 21, 2017, 1:27 a.m.

Search within the streamMovingGenerator package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.