MGC_Noise: Moving Generator Cluster: Noise

Description Usage Arguments Details See Also Examples

View source: R/MGC_Noise.R

Description

Creates noise for a DSD_MG.

Usage

1
2

Arguments

density

The density of the noise

range

a numeric vector that consists of the range of the noise

Details

This allows for the creation of noise within a DSD_MG.

See Also

DSD_MG for details on how to use it within a DSD

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
  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)
  
  ## Not run: 
  animate_data(dsd,2500,xlim=c(0,100),ylim=c(0,100))
  
## End(Not run)
  

streamMovingGenerator documentation built on May 2, 2019, 5:26 p.m.