public class MathUtils extends Object
Modifier and Type | Field and Description |
---|---|
static MersenneTwisterFast |
random
A random number generator that is initialized with the clock when this
class is loaded into the JVM.
|
Constructor and Description |
---|
MathUtils() |
Modifier and Type | Method and Description |
---|---|
static double[] |
getNormalized(double[] array) |
static double[] |
getRandomArguments(MultivariateFunction mf) |
static double |
getTotal(double[] array) |
static double |
getTotal(double[] array,
int start,
int end) |
public static MersenneTwisterFast random
Note: This method or getting random numbers in not thread-safe. Since MersenneTwisterFast is currently (as of 9/01) not synchronized using this function may cause concurrency issues. Use the static get methods of the MersenneTwisterFast class for access to a single instance of the class, that has synchronization.
public static final double[] getNormalized(double[] array)
public static final double getTotal(double[] array, int start, int end)
end
- the index of the element after the last one to be includedpublic static final double getTotal(double[] array)
public static final double[] getRandomArguments(MultivariateFunction mf)
Copyright © 2015–2021 Fiji. All rights reserved.