Modifier and Type | Field and Description |
---|---|
static double |
minAccuracy |
Constructor and Description |
---|
FunUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
count(double[] coefficients)
Deprecated.
|
static int |
desBound(double[] coefficients)
Deprecated.
|
static double[] |
df(double[] coefficients)
Deprecated.
|
static double[] |
diff(double[] d,
double[] e)
compute the difference of vector one and vector two
|
static double |
evaluate(double[] coefficients,
double x)
Deprecated.
|
static int |
gcd(int[] a)
compute greatest common factor for an array of integers.
|
static int |
gcd(int a,
int b)
compute greatest common factor for two numbers
|
static double[] |
H(double[] out,
double n)
Deprecated.
|
static int |
hostId(int[] endIndex,
int num)
Binary search for host id, given an array of neuron index, which are the last neuron index for that nethost
|
static double |
largestRoot(double[] out)
Deprecated.
|
static double[][] |
lRotate90(double[][] conn)
left rotate matrix 90 degree
|
static double |
mean(double[] d)
Same as var function, except mean is computed
|
static double |
mean(int start,
double[] d)
Same as var function, except mean is computed
|
static double |
mean(int start,
int end,
double[] d)
Same as var function, except mean is computed
|
static String |
Pout(double[] coefficients)
Deprecated.
|
static double |
pow2(int expo)
Deprecated.
|
static void |
printA(int[] a)
print array
|
static void |
printlnA(int[] a)
print array
|
static double |
quickNewton(double[] Q,
double guess)
Deprecated.
|
static double[] |
reflex(double[] out)
Deprecated.
|
static double[] |
reverse(double[] out)
Deprecated.
|
static double[] |
RH(double[] out,
double n)
Deprecated.
|
static String |
RPout(double[] coefficients)
Deprecated.
|
static double[][] |
rRotate90(double[][] conn)
right rotate matrix 90 degree
|
static double[] |
RtalorShiftNegOne(double[] out)
Deprecated.
|
static double[] |
RtalorShiftOne(double[] out)
Deprecated.
|
static double |
safeRootFind(double[] Q,
double guess,
double end)
Deprecated.
|
static double[] |
scale(double[] out,
double n)
Deprecated.
|
static double |
sd(double[] d)
Compute the standard deviation of the vector
|
static double |
sd(int start,
double[] d)
Compute the standard deviation of the vector, starting at start
|
static double |
sd(int start,
int end,
double[] d) |
static double |
smallestRoot(double[] coefficients)
Deprecated.
|
static double[] |
talorShiftNegOne(double[] out)
Deprecated.
|
static double[] |
talorShiftOne(double[] out)
Deprecated.
|
static double |
var(double[] d)
compute the variance of the vector
|
static double |
var(int start,
double[] d)
compute the variance of the vector starting at index start
|
static double |
var(int start,
int end,
double[] d)
compute the variance of the vector starting at index start, ending at end index inclusively
|
public static double minAccuracy
public FunUtil()
public static int hostId(int[] endIndex, int num)
endIndex
- num
- public static double[][] lRotate90(double[][] conn)
matrix
- public static double[][] rRotate90(double[][] conn)
matrix
- public static double sd(double[] d)
vector
- public static double sd(int start, double[] d)
starting
- indexvector
- public static double sd(int start, int end, double[] d)
public static double var(double[] d)
vector
- public static double var(int start, double[] d)
vector
- public static double var(int start, int end, double[] d)
start
- idend
- idvector
- public static double mean(double[] d)
d
- public static double mean(int start, double[] d)
start
- idmean
- public static double mean(int start, int end, double[] d)
start
- end
- d
- public static double[] diff(double[] d, double[] e)
vector
- onevector
- two@Deprecated public static String Pout(double[] coefficients)
@Deprecated public static String RPout(double[] coefficients)
@Deprecated public static double evaluate(double[] coefficients, double x)
@Deprecated public static double[] talorShiftOne(double[] out)
@Deprecated public static double[] RtalorShiftOne(double[] out)
@Deprecated public static double[] talorShiftNegOne(double[] out)
@Deprecated public static double[] RtalorShiftNegOne(double[] out)
@Deprecated public static double[] H(double[] out, double n)
@Deprecated public static double[] RH(double[] out, double n)
@Deprecated public static int count(double[] coefficients)
@Deprecated public static double[] scale(double[] out, double n)
@Deprecated public static double pow2(int expo)
@Deprecated public static double[] df(double[] coefficients)
@Deprecated public static int desBound(double[] coefficients)
@Deprecated public static double smallestRoot(double[] coefficients)
@Deprecated public static double safeRootFind(double[] Q, double guess, double end)
@Deprecated public static double[] reverse(double[] out)
@Deprecated public static double largestRoot(double[] out)
@Deprecated public static double[] reflex(double[] out)
@Deprecated public static double quickNewton(double[] Q, double guess)
public static int gcd(int a, int b)
a
- public static int gcd(int[] a)
a
- public static void printA(int[] a)
a
- public static void printlnA(int[] a)
a
-