Class ChartSeries1DMeasure
java.lang.Object
org.graphstream.algorithm.measure.ChartMeasure
org.graphstream.algorithm.measure.ChartSeriesMeasure
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
Constructors Constructor Description ChartSeries1DMeasure(String name)
Default constructor. -
Method Summary
Modifier and Type Method Description 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
-
Constructor Details
-
ChartSeries1DMeasure
Default constructor.- Parameters:
name
- name of this measure
-
-
Method Details
-
setWindowSize
public void setWindowSize(int size)- Overrides:
setWindowSize
in classChartSeriesMeasure
-
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
-