hep.aida.ref.histogram
Class DataPoint
java.lang.Object
hep.aida.ref.event.AIDAObservable
hep.aida.ref.histogram.DataPoint
- All Implemented Interfaces:
- hep.aida.IDataPoint, AIDAListener, IsObservable, java.io.Serializable
public class DataPoint
- extends AIDAObservable
- implements hep.aida.IDataPoint, IsObservable, java.io.Serializable, AIDAListener
Basic user-level interface class for holding and managing
a single set of "measurements".
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataPoint
public DataPoint(int dim)
DataPoint
public DataPoint(hep.aida.IDataPoint p)
DataPoint
public DataPoint(hep.aida.IMeasurement[] meas)
DataPoint
public DataPoint(double[] val)
DataPoint
public DataPoint(double[] val,
double[] err)
DataPoint
public DataPoint(double[] val,
double[] errMinus,
double[] errPlus)
dimension
public int dimension()
- Specified by:
dimension
in interface hep.aida.IDataPoint
coordinate
public hep.aida.IMeasurement coordinate(int coord)
- Specified by:
coordinate
in interface hep.aida.IDataPoint
lowerExtent
public double lowerExtent(int coord)
throws java.lang.IllegalArgumentException
- Get the lower value for a give axis.
This method is not in the IDataPoint interface and is here for efficiency reasons
- Parameters:
coord
- The coordinate of the axis.
- Returns:
- The lower edge of the corresponding axis.
- Throws:
java.lang.IllegalArgumentException
- if coord < 0 or coord >= dimension() or if the set is empty.
upperExtent
public double upperExtent(int coord)
throws java.lang.IllegalArgumentException
- Get the upper value for a give axis.
This method is not in the IDataPoint interface and is here for efficiency reasons
- Parameters:
coord
- The coordinate of the axis.
- Returns:
- The upper edge of the corresponding axis.
- Throws:
java.lang.IllegalArgumentException
- if coord < 0 or coord >= dimension() or if the set is empty.
stateChanged
public void stateChanged(java.util.EventObject e)
- Specified by:
stateChanged
in interface AIDAListener
clear
public void clear()
jHepWork 2.1 (C) S.Chekanov