Code Examples
A repository of 155 code examples for BeepBeep
plots.WindowScatterplot Class Reference

Update a windowed 2D scatterplot in realtime from two streams of numbers. More...

Static Public Member Functions

static void main (String[] args) throws InterruptedException
 

Detailed Description

Update a windowed 2D scatterplot in realtime from two streams of numbers.

This example is similar to CumulativeScatterplot (which you should study first), except for three things:

  • The two outputs of the RandomTwoD processor are merged into arrays of size 2 by the ToArray processor.
  • The creation of a table out of input streams is done with an UpdateTableArray processor
  • The creation of a table out of input streams is encased in a Window processor} of 100 events, and only one table every 20 is pushed downstream.

Graphically, this chain of processor can be described as follows:

Processor graph
Author
Sylvain Hallé Medium

Definition at line 49 of file WindowScatterplot.java.


The documentation for this class was generated from the following file: