FreeHEP API
Version current

hep.aida.ref.histogram
Class DataPoint

java.lang.Object
  extended byhep.aida.ref.event.AIDAObservable
      extended byhep.aida.ref.histogram.DataPoint
All Implemented Interfaces:
AIDAListener, hep.aida.IDataPoint, IsObservable

public class DataPoint
extends AIDAObservable
implements hep.aida.IDataPoint, IsObservable, AIDAListener

Basic user-level interface class for holding and managing a single set of "measurements".

Author:
The AIDA team
Source Code:
DataPoint.java

Field Summary
 
Fields inherited from class hep.aida.ref.event.AIDAObservable
connectionDidChange, isConnected, isValid
 
Constructor Summary
DataPoint(double[] val)
           
DataPoint(double[] val, double[] err)
           
DataPoint(double[] val, double[] errMinus, double[] errPlus)
           
DataPoint(hep.aida.IDataPoint p)
           
DataPoint(hep.aida.IMeasurement[] meas)
           
DataPoint(int dim)
           
 
Method Summary
 void clear()
           
 hep.aida.IMeasurement coordinate(int coord)
           
 int dimension()
           
protected  void finalize()
           
 double lowerExtent(int coord)
          Get the lower value for a give axis.
 void stateChanged(EventObject e)
           
 double upperExtent(int coord)
          Get the upper value for a give axis.
 
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, createEvent, fireStateChanged, fireStateChanged, fireStateChanged, isConnected, removeAllListeners, removeListener, setConnected, setIsValidAfterNotify, setValid, setValidForAll
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.ref.event.IsObservable
addListener, removeAllListeners, removeListener, setValid
 

Constructor Detail

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)
Method Detail

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 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:
IllegalArgumentException - if coord < 0 or coord >= dimension() or if the set is empty.

upperExtent

public double upperExtent(int coord)
                   throws 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:
IllegalArgumentException - if coord < 0 or coord >= dimension() or if the set is empty.

stateChanged

public void stateChanged(EventObject e)
Specified by:
stateChanged in interface AIDAListener

clear

public void clear()

finalize

protected void finalize()
                 throws Throwable
Throws:
Throwable

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.