public abstract class M
extends java.lang.Object
Constructor and Description |
---|
M() |
Modifier and Type | Method and Description |
---|---|
static double[][] |
abs(double[][] A) |
static double[][] |
addBias(double[][] M) |
static Jama.Matrix |
addBias(Jama.Matrix M) |
static int[][] |
deep_copy(int[][] M)
Deep Copy - Make a deep copy of M[][].
|
static double |
dsigma(double a)
Derivative of the sigmoid function applied to scalar
|
static double[] |
dsigma(double[] v)
Derivative of the sigmoid function applied to vector
|
static double[][] |
dsigma(double[][] A)
Derivative of the sigmoid function applied to Matrix
|
static Jama.Matrix |
dsigma(Jama.Matrix A)
Derivative of the sigmoid function applied to Jama Matrix
|
static int[] |
flatten(int[][] M)
Flatten - turn Matrix [0 1; 2 3] into vector [0 1 2 3].
|
static double[] |
getCol(double[][] M,
int k)
GetCol - return the k-th column of M (as a vector).
|
static int[] |
getCol(int[][] M,
int k)
GetCol - return the k-th column of M (as a vector).
|
static double[][] |
multiply(double[][] A,
double K)
Multiply - multiply each value in A[][] by constant K.
|
static double[][] |
removeBias(double[][] M) |
static double |
sigma(double a)
Sigmoid / Logistic function
|
static double[] |
sigma(double[] v)
Sigmoid function applied to vector
|
static double[][] |
sigma(double[][] A)
Sigmoid function applied to matrix (2D array)
|
static Jama.Matrix |
sigma(Jama.Matrix A)
Sigmoid function applied to Matrix
|
static double |
SS(double[][] M) |
static double[][] |
subtract(double[][] A,
double[][] B) |
static double[][] |
threshold(double[][] P,
double t)
Threshold - apply threshold t to matrix P[][].
|
static java.lang.String |
toString(double[][] M_)
ToString - return a String representation.
|
static java.lang.String |
toString(double[][] M_,
int adp)
ToString - return a String representation (to adp decimal places).
|
static java.lang.String |
toString(double[][] M,
java.lang.String name)
ToString - return a String representation of 'M', in Matlab format, called 'name'.
|
static java.lang.String |
toString(int[][] M_)
ToString - return a String representation.
|
public static double[] getCol(double[][] M, int k)
public static int[] getCol(int[][] M, int k)
public static double[][] addBias(double[][] M)
public static Jama.Matrix addBias(Jama.Matrix M)
public static double[][] removeBias(double[][] M)
public static double[][] multiply(double[][] A, double K)
public static java.lang.String toString(double[][] M_, int adp)
public static java.lang.String toString(double[][] M_)
public static java.lang.String toString(int[][] M_)
public static java.lang.String toString(double[][] M, java.lang.String name)
public static final double[][] threshold(double[][] P, double t)
public static int[] flatten(int[][] M)
public static double[][] subtract(double[][] A, double[][] B)
public static double[][] abs(double[][] A)
public static double SS(double[][] M)
public static final double sigma(double a)
public static final double[] sigma(double[] v)
public static final double[][] sigma(double[][] A)
public static final Jama.Matrix sigma(Jama.Matrix A)
public static final double dsigma(double a)
public static final double[] dsigma(double[] v)
public static final double[][] dsigma(double[][] A)
public static final Jama.Matrix dsigma(Jama.Matrix A)
public static int[][] deep_copy(int[][] M)