FreeHEP API
Version current

hep.aida.ref.histogram.binner
Class BasicBinner2D

java.lang.Object
  extended byhep.aida.ref.histogram.binner.BasicBinner2D
All Implemented Interfaces:
Binner2D

public class BasicBinner2D
extends Object
implements Binner2D

Author:
The AIDA team at SLAC
Source Code:
BasicBinner2D.java

Constructor Summary
BasicBinner2D(int xBins, int yBins)
          Creates a new instance of OneDBinner.
 
Method Summary
 void clear()
           
 int entries(int xBin, int yBin)
           
 void fill(int xBin, int yBin, double x, double y, double weight)
           
 double height(int xBin, int yBin)
           
 double meanX(int xBin, int yBin)
           
 double meanY(int xBin, int yBin)
           
 double minusError(int xBin, int yBin)
           
 double plusError(int xBin, int yBin)
           
 double rmsX(int xBin, int yBin)
           
 double rmsY(int xBin, int yBin)
           
 void scale(double scaleFactor)
           
 void setBinContent(int xBin, int yBin, int entries, double height, double plusError, double minusError, double meanX, double rmsX, double meanY, double rmsY)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicBinner2D

public BasicBinner2D(int xBins,
                     int yBins)
Creates a new instance of OneDBinner.

Method Detail

fill

public void fill(int xBin,
                 int yBin,
                 double x,
                 double y,
                 double weight)
Specified by:
fill in interface Binner2D

clear

public void clear()
Specified by:
clear in interface Binner2D

entries

public int entries(int xBin,
                   int yBin)
Specified by:
entries in interface Binner2D

height

public double height(int xBin,
                     int yBin)
Specified by:
height in interface Binner2D

plusError

public double plusError(int xBin,
                        int yBin)
Specified by:
plusError in interface Binner2D

minusError

public double minusError(int xBin,
                         int yBin)
Specified by:
minusError in interface Binner2D

meanX

public double meanX(int xBin,
                    int yBin)
Specified by:
meanX in interface Binner2D

meanY

public double meanY(int xBin,
                    int yBin)
Specified by:
meanY in interface Binner2D

rmsX

public double rmsX(int xBin,
                   int yBin)
Specified by:
rmsX in interface Binner2D

rmsY

public double rmsY(int xBin,
                   int yBin)
Specified by:
rmsY in interface Binner2D

setBinContent

public void setBinContent(int xBin,
                          int yBin,
                          int entries,
                          double height,
                          double plusError,
                          double minusError,
                          double meanX,
                          double rmsX,
                          double meanY,
                          double rmsY)
Specified by:
setBinContent in interface Binner2D

scale

public void scale(double scaleFactor)
Specified by:
scale in interface Binner2D

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.