nl.tudelft.simulation.jstats.charts.histogram
Class HistogramSeries

java.lang.Object
  extended by org.jfree.data.general.AbstractDataset
      extended by nl.tudelft.simulation.jstats.charts.histogram.HistogramSeries
All Implemented Interfaces:
ObjectInputValidation, Serializable, Cloneable, EventListener, EventListenerInterface, Dataset

public class HistogramSeries
extends AbstractDataset
implements EventListenerInterface

The serie defines a histogram series containing the entries of a set.

(c) copyright 2002-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.2
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:43 $
Author:
Alexander Verbraeck
Peter Jacobs
See Also:
Serialized Form

Constructor Summary
HistogramSeries(String name, double[] domain, double[] range, int numberOfBins)
          constructs a new HistogramSeries
 
Method Summary
 int getBinCount()
          returns the number of bins in the histogram
 Number getEndXValue(int bin)
          returns the maxX value for bin
 Number getEndYValue(int bin)
          returns the maxY value
 String getName()
          returns the name of the serie
 Number getStartXValue(int bin)
          returns the minimumX value
 Number getStartYValue(int bin)
          returns the minimumY value
 Number getXValue(int bin)
          returns the x value
 Number getYValue(int bin)
          returns the Y value
 void notify(EventInterface event)
           
 
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistogramSeries

public HistogramSeries(String name,
                       double[] domain,
                       double[] range,
                       int numberOfBins)
constructs a new HistogramSeries

Parameters:
name - the name of the dataset
domain - the domain of the serie
range - the range of the serie
numberOfBins - the number of bins to be used
Method Detail

getName

public String getName()
returns the name of the serie

Returns:
String the name

getEndXValue

public Number getEndXValue(int bin)
returns the maxX value for bin

Parameters:
bin - the bin number
Returns:
Number

getEndYValue

public Number getEndYValue(int bin)
returns the maxY value

Parameters:
bin - the bin number
Returns:
Number

getStartXValue

public Number getStartXValue(int bin)
returns the minimumX value

Parameters:
bin - the bin number
Returns:
Number

getStartYValue

public Number getStartYValue(int bin)
returns the minimumY value

Parameters:
bin - the bin number
Returns:
Number

getBinCount

public int getBinCount()
returns the number of bins in the histogram

Returns:
int

getXValue

public Number getXValue(int bin)
returns the x value

Parameters:
bin - the bin number
Returns:
Number

getYValue

public Number getYValue(int bin)
returns the Y value

Parameters:
bin - the bin number
Returns:
Number

notify

public void notify(EventInterface event)
Specified by:
notify in interface EventListenerInterface
See Also:
#notify(nl.tudelft.simulation.event.EventInterface)


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.