Package com.macrofocus.high_d.mds.tsne
Class DefaultMatrixOperations
java.lang.Object
com.macrofocus.high_d.mds.tsne.AbstractMatrixOperations
com.macrofocus.high_d.mds.tsne.DefaultMatrixOperations
- All Implemented Interfaces:
MatrixOperations
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.macrofocus.high_d.mds.tsne.MatrixOperations
MatrixOperations.MatrixOp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
dnrom
(double mu, double sigma) Generate random draw from Normal with mean mu and std.double[][]
minus
(double[][] m1, double[][] m2) double[][]
scalarMultiply
(double[][] m1, double[][] m2) double[][]
transpose
(double[][] matrix) Methods inherited from class com.macrofocus.high_d.mds.tsne.AbstractMatrixOperations
abs, addColumnVector, addRowVector, assignAllLessThan, assignAtIndex, assignValuesToRow, biggerThan, concatenate, diag, equal, exp, fillMatrix, getValuesFromRow, maximum, mean, negate, plus, range, range, rnorm, scalarDivide, scalarInverse, scalarMult, scalarPlus, scalarPow, square, sum, sum, tile, times
-
Constructor Details
-
DefaultMatrixOperations
public DefaultMatrixOperations()
-
-
Method Details
-
scalarMultiply
public double[][] scalarMultiply(double[][] m1, double[][] m2) -
minus
public double[][] minus(double[][] m1, double[][] m2) -
transpose
public double[][] transpose(double[][] matrix) -
dnrom
public double dnrom(double mu, double sigma) Description copied from interface:MatrixOperations
Generate random draw from Normal with mean mu and std. dev sigma- Returns:
- random sample
-