hep.aida.ref.function
Class FunctionUtils
- java.lang.Object
-
- hep.aida.ref.function.FunctionUtils
-
public abstract class FunctionUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description FunctionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidfill(IHistogram1D hist, IFunction func, int entries, double yMax)Fills IHistogram1D with random entries according to the provided distribution.static voidfill(IHistogram2D hist, IFunction func, int entries, double yMax)static voidfill(IHistogram3D hist, IFunction func, int entries, double yMax)static voidsetRandomSeed(long seed)
-
-
-
Method Detail
-
setRandomSeed
public static void setRandomSeed(long seed)
-
fill
public static void fill(IHistogram1D hist, IFunction func, int entries, double yMax)
Fills IHistogram1D with random entries according to the provided distribution.- Parameters:
hist- Histogram to be filledfunc-entries- How many entries to put in the HistogramyMax- 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(IHistogram2D hist, IFunction func, int entries, double yMax)
-
fill
public static void fill(IHistogram3D hist, IFunction func, int entries, double yMax)
-
-
DMelt 3.0 © DataMelt by jWork.ORG