Moving Generator Cluster: Random

Description

Creates an evolving gaussian cluster for a DSD_MG who's behavior is random.

Usage

1
2
  MGC_Random(start,variance,density,randomness) 
  

Arguments

start

the starting center of the randomly moving gaussian cluster

variance

the static variance of the cluster

density

the static density of the cluster

randomness

The maximum amount the cluster will move during one time step

Details

This allows for the creation of a Moving Generator Cluster that moves randomly.

See Also

MGC_Function, MGC_Noise, MGC_Linear for details on other MGC objects. 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
  dsd <- DSD_MG()
  
  c1 <- MGC_Random(c(50,50),1,1,1)
  c2 <- MGC_Random(c(50,50),1,1,1)
  
  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)