FreeHEP API
Version current

hep.aida.ref.dataSet.binner
Class PoissonBinError

java.lang.Object
  extended byhep.aida.ref.dataSet.binner.PoissonBinError
All Implemented Interfaces:
BinError

public class PoissonBinError
extends Object
implements BinError

This class calculates the error on the bin assuming a Poisson distribution. The error is calculated using the approximation ~ 1 + sqrt( h + 0.75 ) where h is the height of the bin.

Author:
The FreeHEP team @ SLAC.
Source Code:
PoissonBinError.java

Constructor Summary
PoissonBinError()
           
 
Method Summary
 double minusError(int entries, double height)
          Get the minus error on a bin.
 double plusError(int entries, double height)
          Get the plus error on a bin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoissonBinError

public PoissonBinError()
Method Detail

minusError

public double minusError(int entries,
                         double height)
Get the minus error on a bin.

Specified by:
minusError in interface BinError
Parameters:
entries - The entries in the bin.
height - The height of the bin.
Returns:
The minus error.

plusError

public double plusError(int entries,
                        double height)
Get the plus error on a bin.

Specified by:
plusError in interface BinError
Parameters:
entries - The entries in the bin.
height - The height of the bin.
Returns:
The plus error.

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.