public final class Num extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
LOG2 |
static double |
PI_2 |
static Random |
random |
static double |
SQRT_PI_2 |
| Constructor and Description |
|---|
Num() |
| Modifier and Type | Method and Description |
|---|---|
static long |
binomial(int n,
int k) |
static long |
combine(long x,
long y) |
static double |
factorial(int n) |
static int |
factorialInt(int n) |
static double |
gamma(double x)
Very coarse Stirling approximation of Gamma(x) = (x - 1)!
|
static int |
getInteger(boolean[] bool) |
static double |
hypervolume(double r,
double n)
Hypervolume of sphere with radius r and dimension n.
|
static void |
index(int[] array) |
static double |
ld(BigInteger x) |
static double |
log(BigInteger x) |
static long |
log2(long x) |
static double[] |
multiply(double[] x,
double y) |
static double |
nextPoisson() |
static double |
quad(double value) |
static void |
randomizeFactor(double[] array) |
static void |
randomizeFactor(double[] array,
int startIndex,
int endIndex,
double product) |
static void |
randomizeGauss(double[] array) |
static void |
randomizeRot(double[] array)
Creates randomly rotated vector of given array dimension
sum array[i]^2 = 1 (Length is 1)
E(array[i]) is equally distributed over i
E(array[i]^2) is equally distributed over i
E(array[i] * array[i + 1]) = 0 means no correlation between components
|
static void |
rotate(double[] array,
int index,
double sin) |
static void |
rotatePhi(double[] array,
int x,
int y,
double phi) |
static double |
scalar(double[] x,
double[] y) |
static void |
setInteger(boolean[] bool,
int value) |
static double |
sgnSqrt(double value) |
static double |
significance(long a,
long b,
long k,
long n) |
static int |
simpleBinomial(int n,
int k) |
static long |
splitX(long z) |
static long |
splitY(long z) |
static int |
sqr(int x) |
static int |
sqr4(int x) |
static double[] |
subtract(double[] x,
double[] y) |
static String |
toBinaryString(BigInteger number,
int bits) |
static long |
toNumber(String string) |
static String |
toString(double[] values) |
static String |
toString(long number) |
public static final Random random
public static final double LOG2
public static final double PI_2
public static final double SQRT_PI_2
public static long combine(long x,
long y)
public static long splitX(long z)
public static long splitY(long z)
public static long toNumber(String string)
public static String toString(long number)
public static String toBinaryString(BigInteger number, int bits)
public static double significance(long a,
long b,
long k,
long n)
public static double scalar(double[] x,
double[] y)
public static double[] multiply(double[] x,
double y)
public static double[] subtract(double[] x,
double[] y)
public static String toString(double[] values)
public static void randomizeGauss(double[] array)
public static void randomizeFactor(double[] array)
public static void randomizeFactor(double[] array,
int startIndex,
int endIndex,
double product)
public static void randomizeRot(double[] array)
public static void rotatePhi(double[] array,
int x,
int y,
double phi)
public static void rotate(double[] array,
int index,
double sin)
public static double nextPoisson()
public static double quad(double value)
public static double sgnSqrt(double value)
public static void index(int[] array)
public static double factorial(int n)
public static int factorialInt(int n)
public static int simpleBinomial(int n,
int k)
public static long binomial(int n,
int k)
public static double ld(BigInteger x)
public static double log(BigInteger x)
public static long log2(long x)
public static double gamma(double x)
public static double hypervolume(double r,
double n)
public static int getInteger(boolean[] bool)
public static void setInteger(boolean[] bool,
int value)
public static int sqr4(int x)
public static int sqr(int x)
Copyright © 2014 Intersult GmbH. All rights reserved.