hep.analysis.partition
Class SimplePartition

java.lang.Object
  |
  +--java.util.Observable
        |
        +--hep.analysis.Partition
              |
              +--hep.analysis.partition.Abstract1DPartition
                    |
                    +--hep.analysis.partition.OneDDelegatingPartition
                          |
                          +--hep.analysis.partition.SimplePartition
All Implemented Interfaces:
OneDDataSource, OneDFillable, RangeChangeListener, java.io.Serializable, StatisticsProvider, TwoDFillable
Direct Known Subclasses:
MeanPartition, SimpleDatePartition, SimpleIntPartition

public class SimplePartition
extends OneDDelegatingPartition

See Also:
Serialized Form

Field Summary
protected  boolean m_autoRange
           
protected  int m_defaultBins
           
protected  double m_max
           
protected  double m_min
           
 
Fields inherited from class hep.analysis.Partition
DATE, DELTATIME, DOUBLE, HORIZONTAL_AXIS, INTEGER, m_owner, STRING, VERTICAL_AXIS
 
Constructor Summary
SimplePartition()
           
SimplePartition(BinType type)
           
SimplePartition(double min, double max)
           
SimplePartition(double min, double max, BinType type)
           
SimplePartition(double min, double max, int bins)
           
SimplePartition(int bins)
           
 
Method Summary
 int getAxisType()
          Return the Axis type
 double getMax()
          Return the maximum in the distribution.
 double getMin()
          Return the minimum in the distribution.
 int getNumberOfBins()
          Return the number of bins.
 Statistics getStatistics()
           
 boolean isRebinnable()
          Returns false by default.
 Partition makeCopy()
          Make a copy of this partition, maintaining the partition class and initial state, but not the data stored in the partition.
 void setBinning(int bins, double min, double max)
          Override to allow binning to be set.
 
Methods inherited from class hep.analysis.partition.OneDDelegatingPartition
clear, fill, fill, fill, fill, fillW, fillW, fillW, fillW, getAxisLabels, getBins, getMinusErrors, getPlusErrors, hasAsymmetricErrorBars, hasSimpleQuadraticErrorBars, setBinInfo, setDataSource, setFillable, setStatisticsProvider
 
Methods inherited from class hep.analysis.partition.Abstract1DPartition
clearDataChanged, clearRangeChanged, done, fill, fill, fillW, fillW, getBin, getBinAt, getBinAt, getBinAt, getBinAt, getError, getMinusError, getPlusError, notifyObservers, rangeChanged, setDataAndRangeChanged, setDataAndRangeChangedNow, setDataChanged, setRangeChanged
 
Methods inherited from class hep.analysis.Partition
destroy, getStyle, setStyle
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_min

protected double m_min

m_max

protected double m_max

m_autoRange

protected boolean m_autoRange

m_defaultBins

protected int m_defaultBins
Constructor Detail

SimplePartition

public SimplePartition()

SimplePartition

public SimplePartition(int bins)

SimplePartition

public SimplePartition(BinType type)

SimplePartition

public SimplePartition(double min,
                       double max)

SimplePartition

public SimplePartition(double min,
                       double max,
                       int bins)

SimplePartition

public SimplePartition(double min,
                       double max,
                       BinType type)
Method Detail

setBinning

public void setBinning(int bins,
                       double min,
                       double max)
Description copied from class: Abstract1DPartition
Override to allow binning to be set. Throws an UnsupportedPartitionMethodException by default.
Overrides:
setBinning in class OneDDelegatingPartition
Following copied from class: hep.analysis.partition.Abstract1DPartition
Parameters:
bins - the number of bins to have
min - the minimum of the partition range
max - the maximum of the partition range
Throws:
UnsupportedPartitionMethodException - if not overridden.

getNumberOfBins

public int getNumberOfBins()
Description copied from class: Abstract1DPartition
Return the number of bins.
Overrides:
getNumberOfBins in class OneDDelegatingPartition

getMin

public double getMin()
Description copied from class: Abstract1DPartition
Return the minimum in the distribution.
Overrides:
getMin in class OneDDelegatingPartition

getMax

public double getMax()
Description copied from class: Abstract1DPartition
Return the maximum in the distribution.
Overrides:
getMax in class OneDDelegatingPartition

getStatistics

public Statistics getStatistics()
Overrides:
getStatistics in class OneDDelegatingPartition

isRebinnable

public boolean isRebinnable()
Description copied from class: Abstract1DPartition
Returns false by default. Override to have a rebinnable partition.
Overrides:
isRebinnable in class OneDDelegatingPartition

getAxisType

public int getAxisType()
Description copied from class: Abstract1DPartition
Return the Axis type
Overrides:
getAxisType in class OneDDelegatingPartition

makeCopy

public Partition makeCopy()
Description copied from class: Partition
Make a copy of this partition, maintaining the partition class and initial state, but not the data stored in the partition.
Overrides:
makeCopy in class Partition