org.graphstream.algorithm.measure
Class ChartSeries1DMeasure

java.lang.Object
  extended by org.graphstream.algorithm.measure.ChartMeasure
      extended by org.graphstream.algorithm.measure.ChartSeriesMeasure
          extended by org.graphstream.algorithm.measure.ChartSeries1DMeasure

public class ChartSeries1DMeasure
extends ChartSeriesMeasure

A measure to add 1D entries (y). x is auto-incremented by one at each new value.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.graphstream.algorithm.measure.ChartMeasure
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType
 
Field Summary
 
Fields inherited from class org.graphstream.algorithm.measure.ChartSeriesMeasure
DEFAULT_WINDOW_SIZE
 
Constructor Summary
ChartSeries1DMeasure(String name)
          Default constructor.
 
Method Summary
 void addValue(double v)
          Add a new value to the series.
 long getCount()
          Get the count of values that have been added to this series.
 double getMax()
          Get the max of the series.
 double getMean()
          Get the mean of the series.
 double getMin()
          Get the min of the series.
 double getVariance()
          Get the variance of the series.
 void setWindowSize(int size)
           
 
Methods inherited from class org.graphstream.algorithm.measure.ChartSeriesMeasure
createChart, getDefaultPlotParameters, getXYSeries, plot
 
Methods inherited from class org.graphstream.algorithm.measure.ChartMeasure
outputPlot, outputPlot, plot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartSeries1DMeasure

public ChartSeries1DMeasure(String name)
Default constructor.

Parameters:
name - name of this measure
Method Detail

setWindowSize

public void setWindowSize(int size)
Overrides:
setWindowSize in class ChartSeriesMeasure

addValue

public void addValue(double v)
Add a new value to the series.

Parameters:
v - the new value

getCount

public long getCount()
Get the count of values that have been added to this series.

Returns:
count of values

getMean

public double getMean()
Get the mean of the series.

Returns:
mean of the series

getMax

public double getMax()
Get the max of the series.

Returns:
max of the series

getMin

public double getMin()
Get the min of the series.

Returns:
min of the series

getVariance

public double getVariance()
Get the variance of the series.

Returns:
variance of the series


Copyright © 2013. All Rights Reserved.