public final class FunctionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
cube(double x)
Deprecated.
|
static int[] |
fromTensorIndex(int index,
int[] dimensions) |
static int |
getLowerBoundIndex(DoubleArray set,
double value)
Find the index of a sorted set that is less than or equal to a given value.
|
static double |
square(double x)
Deprecated.
|
static int |
toTensorIndex(int[] indices,
int[] dimensions) |
static double[] |
unique(double[] in)
Same behaviour as mathlab unique.
|
static int[] |
unique(int[] in)
Same behaviour as mathlab unique.
|
@Deprecated public static double square(double x)
MathUtils.pow2(double)x - the number to square@Deprecated public static double cube(double x)
MathUtils.pow3(double)x - the number to cubepublic static int toTensorIndex(int[] indices,
int[] dimensions)
public static int[] fromTensorIndex(int index,
int[] dimensions)
public static double[] unique(double[] in)
in - the input arraypublic static int[] unique(int[] in)
in - the input arraypublic static int getLowerBoundIndex(DoubleArray set, double value)
set - a sorted array of numbers.value - the value to search forCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.