cern.hep.aida.ref
Class FixedAxis

java.lang.Object
  extended by cern.hep.aida.ref.FixedAxis
All Implemented Interfaces:
colt.hep.aida.IAxis, java.io.Serializable

public class FixedAxis
extends java.lang.Object
implements colt.hep.aida.IAxis

Fixed-width axis; A reference implementation of hep.aida.IAxis.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface colt.hep.aida.IAxis
serialVersionUID
 
Constructor Summary
FixedAxis(int bins, double min, double max)
          Create an Axis
 
Method Summary
 double binCentre(int index)
           
 double binLowerEdge(int index)
           
 int bins()
           
 double binUpperEdge(int index)
           
 double binWidth(int index)
           
 int coordToIndex(double coord)
           
 double lowerEdge()
           
 double upperEdge()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedAxis

public FixedAxis(int bins,
                 double min,
                 double max)
Create an Axis

Parameters:
bins - Number of bins
min - Minimum for axis
max - Maximum for axis
Method Detail

binCentre

public double binCentre(int index)
Specified by:
binCentre in interface colt.hep.aida.IAxis

binLowerEdge

public double binLowerEdge(int index)
Specified by:
binLowerEdge in interface colt.hep.aida.IAxis

bins

public int bins()
Specified by:
bins in interface colt.hep.aida.IAxis

binUpperEdge

public double binUpperEdge(int index)
Specified by:
binUpperEdge in interface colt.hep.aida.IAxis

binWidth

public double binWidth(int index)
Specified by:
binWidth in interface colt.hep.aida.IAxis

coordToIndex

public int coordToIndex(double coord)
Specified by:
coordToIndex in interface colt.hep.aida.IAxis

lowerEdge

public double lowerEdge()
Specified by:
lowerEdge in interface colt.hep.aida.IAxis

upperEdge

public double upperEdge()
Specified by:
upperEdge in interface colt.hep.aida.IAxis


jHepWork 2.8 (©) S.Chekanov