Grapher

class Grapher

Wrapped around GraphData for easier processing

Author:Marcel Stefko

Constructors

Grapher

public Grapher(int n_points)

Initialize a grapher with set length of point plotting

Parameters:
  • n_points – no. of points to be plotted

Methods

addDataPoint

public void addDataPoint(double value)

Add the next point to the grapher

Parameters:
  • value – value to be added

getGraphData

public GraphData getGraphData()

Return GraphData which can then be plotted

Returns:GraphData