public class DoubleArrayMath
extends java.lang.Object
double[].
In other words, this provide an array version of Math.
These functions are static and stateless.
| Modifier and Type | Method and Description |
|---|---|
static double[] |
abs(double[] doubles)
Get the absolute values.
|
static double[] |
add(double[] doubles,
double value)
Adds a double value to each element in an array.
|
static double[] |
exp(double[] doubles)
Get the exponentials of values.
|
static double[] |
log(double[] doubles)
Get the logs of values.
|
static double |
max(double... doubles)
Get the maximum of the values.
|
static int |
max(int... integers)
Get the maximum of the values.
|
static double |
min(double... doubles)
Get the minimum of the values.
|
static double[] |
signum(double[] doubles)
Get the signs of values.
|
static double[] |
sqrt(double[] doubles)
Get the square roots of values.
|
static double |
sum(double... doubles)
Get the sum of the values.
|
static int |
sum(int... integers)
Get the sum of the values.
|
static double |
sum2(double... doubles)
Get the sum of squares of the values.
|
public static double min(double... doubles)
doubles - an array of doublespublic static double max(double... doubles)
doubles - an array of doublespublic static int max(int... integers)
integers - an array of intspublic static double[] abs(double[] doubles)
doubles - an array of doublespublic static double sum(double... doubles)
doubles - an array of doublespublic static int sum(int... integers)
integers - an array of intspublic static double sum2(double... doubles)
doubles - an array of doublespublic static double[] log(double[] doubles)
doubles - an array of doublespublic static double[] exp(double[] doubles)
doubles - an array of doublespublic static double[] sqrt(double[] doubles)
doubles - an array of doublespublic static double[] signum(double[] doubles)
doubles - an array of doublespublic static double[] add(double[] doubles,
double value)
doubles - the double arrayvalue - the value to be added