MGC_Linear: Moving Generator Cluster: Linear

Description Usage Arguments Details See Also Examples

View source: R/MGC_Linear.R

Description

Creates an evolving gaussian cluster for a DSD_MG who's behavior is determined by several keyframes.

Usage

1
2
  MGC_Linear(dimension = 2) 
  

Arguments

dimension

the dimension of the MGC

Details

This allows for a creation of a Moving Generator Cluster that is defined by several different keyframes. The constructor for MGC_Linear merely creates a wrapper for several keyframes. To add a keyframe use add_keyframe().

See Also

add_keyframe, remove_keyframe for deatils on how to add or remove keyframes. MGC_Function, MGC_Noise, MGC_Random 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
14
15
16
17
18
19
  dsd <- DSD_MG()
  
  c1 <- MGC_Linear()
  c2 <- MGC_Linear()
  add_keyframe(c1,1,10,10,c(0,0),cluster=1)
  add_keyframe(c1,50,10,10,c(50,50),cluster=1)
  add_keyframe(c1,100,10,10,c(50,100),cluster=1)
  add_keyframe(c2,1,10,10,c(0,0),cluster=1)
  add_keyframe(c2,50,10,10,c(50,50),cluster=2)
  add_keyframe(c2,100,10,10,c(100,50),cluster=2)

  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.