hep.aida.ref.histogram
Class Measurement

java.lang.Object
  extended by hep.aida.ref.event.AIDAObservable
      extended by hep.aida.ref.histogram.Measurement
All Implemented Interfaces:
IMeasurement, IsObservable, Serializable

public class Measurement
extends AIDAObservable
implements IMeasurement, IsObservable, Serializable

Basic user-level interface class for holding a single "measurement" with positive and negative errors (to allow for asymmetric errors). "IMeasurement" = "value" + "errorPlus" - "errorMinus"

See Also:
Serialized Form

Constructor Summary
Measurement()
           
Measurement(double val)
           
Measurement(double val, double err)
           
Measurement(double val, double errMinus, double errPlus)
           
Measurement(IMeasurement m)
           
 
Method Summary
 double errorMinus()
          Get the minus error of the IMeasurement.
 double errorPlus()
          Get the plus error of the IMeasurement.
 void setErrorMinus(double errorMinus)
          Set the minus error of the IMeasurement.
 void setErrorPlus(double errorPlus)
          Set the plus error of the IMeasurement.
 void setValue(double value)
          Set the value of the IMeasurement.
 double value()
          Get the value of the IMeasurement.
 
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, isConnected, removeAllListeners, removeListener, setConnected, setValid, setValidForAll
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.ref.event.IsObservable
addListener, removeAllListeners, removeListener, setValid
 

Constructor Detail

Measurement

public Measurement()

Measurement

public Measurement(IMeasurement m)

Measurement

public Measurement(double val)

Measurement

public Measurement(double val,
                   double err)

Measurement

public Measurement(double val,
                   double errMinus,
                   double errPlus)
Method Detail

value

public double value()
Description copied from interface: IMeasurement
Get the value of the IMeasurement.

Specified by:
value in interface IMeasurement
Returns:
The value of the IMeasurement.

errorPlus

public double errorPlus()
Description copied from interface: IMeasurement
Get the plus error of the IMeasurement.

Specified by:
errorPlus in interface IMeasurement
Returns:
The plus error.

errorMinus

public double errorMinus()
Description copied from interface: IMeasurement
Get the minus error of the IMeasurement.

Specified by:
errorMinus in interface IMeasurement
Returns:
The minus error.

setValue

public void setValue(double value)
              throws IllegalArgumentException
Description copied from interface: IMeasurement
Set the value of the IMeasurement.

Specified by:
setValue in interface IMeasurement
Parameters:
value - The new value of the IMeasurement.
Throws:
IllegalArgumentException - If the value cannot be set.

setErrorPlus

public void setErrorPlus(double errorPlus)
                  throws IllegalArgumentException
Description copied from interface: IMeasurement
Set the plus error of the IMeasurement.

Specified by:
setErrorPlus in interface IMeasurement
Throws:
IllegalArgumentException - If the error cannot be set or it is negative.

setErrorMinus

public void setErrorMinus(double errorMinus)
                   throws IllegalArgumentException
Description copied from interface: IMeasurement
Set the minus error of the IMeasurement.

Specified by:
setErrorMinus in interface IMeasurement
Throws:
IllegalArgumentException - If the error cannot be set or it is negative.


jHepWork 3.2 © jWork.org