|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.retro.neural.LinAlgFactory
org.retro.neural.DoubleFactory
| Constructor Summary | |
DoubleFactory()
|
|
| Method Summary | |
static Matrix |
buildMatrix(double[][] theValues)
|
static Vector |
buildVector(double[] theValues)
|
static double |
doubleValue(FieldElement d)
Returns the double-precision floating-point value in a FieldElement. |
static double |
doubleValue(Matrix a,
int i,
int j)
Returns the I,Jth double-precision floating-point value in a Matrix. |
static double |
doubleValue(Vector x,
int i)
Returns the Ith double-precision floating-point value in a Vector. |
static double[][] |
doubleValues(Matrix theMatrix)
Returns an array of double-precision floating-point values contained in a Matrix. |
static double[] |
doubleValues(Vector theVector)
Returns an array of double-precision floating-point values contained in a Vector. |
static double |
eucDist(Vector x,
Vector y)
Returns the Euclidean distance between two Vectors. |
Vector |
gaussianNoise(int length)
Returns a Vector of normally distributed random values. |
Matrix |
gaussianNoise(int numberOfRows,
int numberOfCols)
|
Matrix |
gaussianNoise(int numberOfRows,
int numberOfCols,
long seed)
|
Matrix |
gaussianNoise(int numberOfRows,
int numberOfCols,
java.util.Random random)
|
Vector |
gaussianNoise(int length,
long seed)
Returns a Vector of normally distributed random values. |
Vector |
gaussianNoise(int length,
java.util.Random random)
|
static double |
L2Norm(Vector x)
Returns the L2 norm of a vector |
FieldElement |
randomValue(java.util.Random random)
Returns a random value. |
FieldElement |
unityValue()
Returns a FieldElement corresponding to unity (1), the neutral element of multiplication. |
FieldElement |
zeroValue()
Returns a FieldElement corresponding to zero (0), the neutral element of addition. |
| Methods inherited from class org.retro.neural.LinAlgFactory |
identity, ones, ones, uniformNoise, uniformNoise, uniformNoise, uniformNoise, uniformNoise, uniformNoise, zeros, zeros |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DoubleFactory()
| Method Detail |
public static Matrix buildMatrix(double[][] theValues)
throws InvalidOperationException
InvalidOperationException
public static Vector buildVector(double[] theValues)
throws InvalidOperationException
InvalidOperationException
public Matrix gaussianNoise(int numberOfRows,
int numberOfCols,
java.util.Random random)
public Matrix gaussianNoise(int numberOfRows,
int numberOfCols,
long seed)
public Matrix gaussianNoise(int numberOfRows,
int numberOfCols)
public Vector gaussianNoise(int length,
java.util.Random random)
public Vector gaussianNoise(int length,
long seed)
length - seed - seed for random-number generator
public Vector gaussianNoise(int length)
length -
public static double[][] doubleValues(Matrix theMatrix)
throws InvalidOperationException
theMatrix -
InvalidOperationException - if theMatrix does not contain doubles
public static double[] doubleValues(Vector theVector)
throws InvalidOperationException
theVector -
InvalidOperationException - if theVector does not contain doubles
public static double eucDist(Vector x,
Vector y)
throws InvalidOperationException
x - one Vectory - the other Vector
InvalidOperationException - if either Vector does not
contain doubles
public static double L2Norm(Vector x)
throws InvalidOperationException
x - the Vector
InvalidOperationException - if x does not contain doubles
public static double doubleValue(FieldElement d)
throws InvalidOperationException
d - the element
InvalidOperationException - if d does not contain a double
public static double doubleValue(Vector x,
int i)
throws InvalidOperationException
x - the Vectori - the index
InvalidOperationException - if v does not contain double
InvalidOperationException - if the index is out of bounds
public static double doubleValue(Matrix a,
int i,
int j)
throws InvalidOperationException
a - the Matrixi - row indexj - column index
InvalidOperationException - if v does not contain double
InvalidOperationException - if either index is out of boundspublic FieldElement unityValue()
unityValue in class LinAlgFactorypublic FieldElement zeroValue()
zeroValue in class LinAlgFactorypublic FieldElement randomValue(java.util.Random random)
randomValue in class LinAlgFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||