FreeHEP API
Version current

hep.aida.ref.function
Class Grid

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

public class Grid
extends Object

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

Constructor Summary
Grid(hep.aida.IModelFunction func)
           
 
Method Summary
protected  void accumulate(int[][] bin, double amount)
           
 int dimension()
           
protected  int[][] firstBox()
           
protected  void generatePoint(int[][] box, double[] x, 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(hep.aida.IModelFunction func)
           
 boolean isValid()
           
static void main(String[] args)
           
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(hep.aida.IModelFunction func)
Method Detail

initialize

protected void initialize(hep.aida.IModelFunction func)

resize

protected void resize(int bins)

resetValues

protected void resetValues()

generatePoint

protected void generatePoint(int[][] box,
                             double[] x,
                             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()

main

public static void main(String[] args)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.