Class ChartSeries2DMeasure
java.lang.Object
org.graphstream.algorithm.measure.ChartMeasure
org.graphstream.algorithm.measure.ChartSeriesMeasure
org.graphstream.algorithm.measure.ChartSeries2DMeasure
- Direct Known Subclasses:
ChartConnectivityMeasure.ChartEdgeConnectivityMeasure
,ChartConnectivityMeasure.ChartVertexConnectivityMeasure
,ChartMinMaxAverageSeriesMeasure
,ElementCountMeasure
public class ChartSeries2DMeasure extends ChartSeriesMeasure
A measure allowing to add 2D entries (x,y).
-
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 ChartSeries2DMeasure(String name)
Default constructor. -
Method Summary
Modifier and Type Method Description void
addValue(double x, double y)
Add a new point to the series.long
getCount()
Get the count of points added to this series.double
getXMax()
Get the max of x values.double
getXMean()
Get the mean of x values.double
getXMin()
Get the min of x values.double
getXVariance()
Get the variance of x values.double
getYMax()
Get the max of y values.double
getYMean()
Get the mean of y values.double
getYMin()
Get the min of y values.double
getYVariance()
Get the variance of y values.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
-
ChartSeries2DMeasure
Default constructor.- Parameters:
name
- names of the measure
-
-
Method Details
-
setWindowSize
public void setWindowSize(int size)- Overrides:
setWindowSize
in classChartSeriesMeasure
-
addValue
public void addValue(double x, double y)Add a new point to the series.- Parameters:
x
- x value of the new pointy
- y value osf the new point
-
getCount
public long getCount()Get the count of points added to this series.- Returns:
- count of points.s
-
getXMean
public double getXMean()Get the mean of x values.- Returns:
- x values means
-
getXMax
public double getXMax()Get the max of x values.- Returns:
- x values max
-
getXMin
public double getXMin()Get the min of x values.- Returns:
- x values min
-
getXVariance
public double getXVariance()Get the variance of x values.- Returns:
- x values variance
-
getYMean
public double getYMean()Get the mean of y values.- Returns:
- y values means
-
getYMax
public double getYMax()Get the max of y values.- Returns:
- y values max
-
getYMin
public double getYMin()Get the min of y values.- Returns:
- y values min
-
getYVariance
public double getYVariance()Get the variance of y values.- Returns:
- y values variance
-