hep.aida.ref.function
Class Grid
java.lang.Object
hep.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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Grid
public Grid(hep.aida.IModelFunction func)
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)
Copyright © 2000-2004 FreeHEP, All Rights Reserved.