org.graphstream.algorithm.measure
Class ChartSeries2DMeasure

java.lang.Object
  extended by org.graphstream.algorithm.measure.ChartMeasure
      extended by org.graphstream.algorithm.measure.ChartSeriesMeasure
          extended by 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
ChartSeries2DMeasure(String name)
          Default constructor.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartSeries2DMeasure

public ChartSeries2DMeasure(String name)
Default constructor.

Parameters:
name - names of the measure
Method Detail

setWindowSize

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

addValue

public void addValue(double x,
                     double y)
Add a new point to the series.

Parameters:
x - x value of the new point
y - 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


Copyright © 2012. All Rights Reserved.