FreeHEP API
Version current

hep.aida.ref.function
Class FunctionUtils

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

public abstract class FunctionUtils
extends Object

Author:
serbo
Source Code:
FunctionUtils.java

Constructor Summary
FunctionUtils()
           
 
Method Summary
static void fill(hep.aida.IHistogram1D hist, hep.aida.IFunction func, int entries, double yMax)
          Fills IHistogram1D with random entries according to the provided distribution.
static void fill(hep.aida.IHistogram2D hist, hep.aida.IFunction func, int entries, double yMax)
           
static void fill(hep.aida.IHistogram3D hist, hep.aida.IFunction func, int entries, double yMax)
           
static void setRandomSeed(long seed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionUtils

public FunctionUtils()
Method Detail

setRandomSeed

public static void setRandomSeed(long seed)

fill

public static void fill(hep.aida.IHistogram1D hist,
                        hep.aida.IFunction func,
                        int entries,
                        double yMax)
Fills IHistogram1D with random entries according to the provided distribution.

Parameters:
hist - Histogram to be filled
func -
entries - How many entries to put in the Histogram
yMax - Maximum value the function can take on the range. This does not have to be the exact value, just make sure that function never takes value bigger than yMax.

fill

public static void fill(hep.aida.IHistogram2D hist,
                        hep.aida.IFunction func,
                        int entries,
                        double yMax)

fill

public static void fill(hep.aida.IHistogram3D hist,
                        hep.aida.IFunction func,
                        int entries,
                        double yMax)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.