FreeHEP API
Version current

hep.aida.ref.pdf
Class Grid

java.lang.Object
  extended byhep.aida.ref.pdf.Grid

public class Grid
extends Object

Author:
The AIDA team @ SLAC
Source Code:
Grid.java

Constructor Summary
Grid(Dependent[] deps)
           
 
Method Summary
protected  void accumulate(int[][] bin, double amount)
           
 int dimension()
           
protected  int[][] firstBox()
           
protected  void generatePoint(int[][] box, int[][] bin, double[] vol)
          Generate a random vector in the specified box and store its coordinates in the array x, its bin indices in the bin array and its volume in the variable vol.
protected  void initialize()
           
 boolean isValid()
           
protected  int maxBins()
           
 int nBins()
           
 int nBoxes()
           
protected  boolean nextBox(int[][] box)
           
 void printBinning()
           
protected  void refine(double alpha)
           
protected  void resetValues()
           
protected  void resize(int bins)
           
 void setBoxes(int nBoxes)
           
 double volume()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid

public Grid(Dependent[] deps)
Method Detail

initialize

protected void initialize()

resize

protected void resize(int bins)

resetValues

protected void resetValues()

generatePoint

protected void generatePoint(int[][] box,
                             int[][] bin,
                             double[] vol)
Generate a random vector in the specified box and store its coordinates in the array x, its bin indices in the bin array and its volume in the variable vol.


firstBox

protected int[][] firstBox()

nextBox

protected boolean nextBox(int[][] box)

maxBins

protected int maxBins()

refine

protected void refine(double alpha)

accumulate

protected void accumulate(int[][] bin,
                          double amount)

isValid

public boolean isValid()

dimension

public int dimension()

volume

public double volume()

nBins

public int nBins()

nBoxes

public int nBoxes()

setBoxes

public void setBoxes(int nBoxes)

printBinning

public void printBinning()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.