FreeHEP API
Version current

hep.aida.ref.histogram
Class Measurement

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

public class Measurement
extends AIDAObservable
implements hep.aida.IMeasurement, IsObservable

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

Author:
The AIDA team
Source Code:
Measurement.java

Field Summary
 
Fields inherited from class hep.aida.ref.event.AIDAObservable
connectionDidChange, isConnected, isValid
 
Constructor Summary
Measurement()
           
Measurement(double val)
           
Measurement(double val, double err)
           
Measurement(double val, double errMinus, double errPlus)
           
Measurement(hep.aida.IMeasurement m)
           
 
Method Summary
 double errorMinus()
           
 double errorPlus()
           
 void setErrorMinus(double errorMinus)
           
 void setErrorPlus(double errorPlus)
           
 void setValue(double value)
           
 double value()
           
 
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, finalize, 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(hep.aida.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()
Specified by:
value in interface hep.aida.IMeasurement

errorPlus

public double errorPlus()
Specified by:
errorPlus in interface hep.aida.IMeasurement

errorMinus

public double errorMinus()
Specified by:
errorMinus in interface hep.aida.IMeasurement

setValue

public void setValue(double value)
              throws IllegalArgumentException
Specified by:
setValue in interface hep.aida.IMeasurement
Throws:
IllegalArgumentException

setErrorPlus

public void setErrorPlus(double errorPlus)
                  throws IllegalArgumentException
Specified by:
setErrorPlus in interface hep.aida.IMeasurement
Throws:
IllegalArgumentException

setErrorMinus

public void setErrorMinus(double errorMinus)
                   throws IllegalArgumentException
Specified by:
setErrorMinus in interface hep.aida.IMeasurement
Throws:
IllegalArgumentException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.