|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
org.ujmp.core.matrix.AbstractMatrix
public abstract class AbstractMatrix
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.ujmp.core.Matrix |
---|
Matrix.StorageType |
Field Summary | |
---|---|
static MatrixFactoryRoot |
factory
|
Fields inherited from interface org.ujmp.core.Matrix |
---|
ALL, chol, COLUMN, divideMatrix, divideScalar, eig, inv, LINK, lu, minusMatrix, minusScalar, mtimes, NEW, NONE, ORIG, plusMatrix, plusScalar, qr, ROW, solve, svd, timesMatrix, timesScalar, transpose, X, Y, Z |
Constructor Summary | |
---|---|
AbstractMatrix()
|
Method Summary | |
---|---|
Matrix |
abs(Calculation.Ret returnType)
Calculates the absolute values of all entries in a Matrix. |
Matrix |
addMissing(Calculation.Ret returnType,
int dimension,
double... percentMissing)
Adds a specified amount of missing values (Double.NaN) to the Matrix |
Iterable<long[]> |
allCoordinates()
Returns an Iterator that goes over all coordinates in the Matrix. |
Iterable<Object> |
allValues()
|
Matrix |
and(Calculation.Ret returnType,
boolean value)
|
Matrix |
and(Calculation.Ret returnType,
Matrix matrix)
|
Matrix |
append(int dimension,
Matrix m)
|
Matrix |
appendHorizontally(Matrix m)
|
Matrix |
appendVertically(Matrix m)
|
Matrix |
atimes(Calculation.Ret returnType,
boolean ignoreNaN,
Matrix matrix)
Performs an averaging matrix multiplication on the two matrices. |
Iterable<long[]> |
availableCoordinates()
Returns an Iterator that only goes over the coordinates in the Matrix that are stored. |
BigDecimal |
bigDecimalValue()
|
BigInteger |
bigIntegerValue()
|
boolean |
booleanValue()
|
Matrix |
bootstrap(Calculation.Ret returnType)
|
Matrix |
bootstrap(Calculation.Ret returnType,
int count)
|
Matrix |
ceil(Calculation.Ret returnType)
Returns a matrix with all entries rounded up to the next integer. |
Matrix |
center(Calculation.Ret returnType,
int dimension,
boolean ignoreNaN)
Subtracts the mean from the matrix. |
char |
charValue()
|
double |
chebyshevDistanceTo(Matrix m,
boolean ignoreNaN)
|
Matrix |
chol()
Calculates a Cholesky decomposition of the matrix. |
void |
clear()
|
Matrix |
clone()
|
int |
compareTo(Matrix m)
|
boolean |
containsBigDecimal(BigDecimal v)
|
boolean |
containsBigInteger(BigInteger v)
|
boolean |
containsBoolean(boolean v)
|
boolean |
containsByte(byte v)
|
boolean |
containsChar(char v)
|
boolean |
containsDate(Date v)
|
boolean |
containsDouble(double v)
|
boolean |
containsFloat(float v)
|
boolean |
containsInt(int v)
|
boolean |
containsLong(long v)
|
boolean |
containsMissingValues()
|
boolean |
containsNull()
|
boolean |
containsObject(Object o)
|
boolean |
containsShort(short v)
|
boolean |
containsString(String s)
|
Matrix |
convert(ValueType newValueType)
Creates a copy of the matrix with the desired type for matrix entries. |
Matrix |
copy()
Deprecated. Please do not use this method anymore, it will be removed. use matrix.clone() instead |
Matrix |
corrcoef(Calculation.Ret returnType,
boolean ignoreNaN)
Calculates the Pearson correlation. |
Matrix |
cos(Calculation.Ret returnType)
Calculates the cosinus of all entries in the matrix. |
Matrix |
cosh(Calculation.Ret returnType)
Calculates the hyperbolic cosinus of all entries in the matrix. |
Matrix |
countMissing(Calculation.Ret returnType,
int dimension)
Counts the missing values within the matrix, i.e. |
Matrix |
cov(Calculation.Ret returnType,
boolean ignoreNaN)
Calculates the covariance Matrix. |
Matrix |
cumprod(boolean ignoreNaN)
|
Matrix |
cumsum(boolean ignoreNaN)
|
Date |
dateValue()
|
Matrix |
delete(Calculation.Ret returnType,
Collection<? extends Number>... selection)
Delete rows and columns in the Matrix and returns a link to it. |
Matrix |
delete(Calculation.Ret returnType,
long[]... selection)
Delete rows and columns in the Matrix and returns a link to it. |
Matrix |
delete(Calculation.Ret returnType,
String selection)
Deletes rows and columns in the Matrix and returns a link to it. |
Matrix |
deleteColumns(Calculation.Ret returnType,
Collection<? extends Number> columns)
Deletes columns in the Matrix and returns a link to it. |
Matrix |
deleteColumns(Calculation.Ret returnType,
long... columns)
Deletes columns in the Matrix and returns a link to it. |
Matrix |
deleteColumnsWithMissingValues(Calculation.Ret returnType)
|
Matrix |
deleteRows(Calculation.Ret returnType,
Collection<? extends Number> rows)
Deletes rows in the Matrix and returns a link to it. |
Matrix |
deleteRows(Calculation.Ret returnType,
long... rows)
Deletes rows in the Matrix and returns a link to it. |
Matrix |
deleteRowsWithMissingValues(Calculation.Ret returnType,
long threshold)
|
double |
det()
|
Matrix |
diff(Calculation.Ret returnType,
int dimension,
boolean ignoreNaN)
|
Matrix |
discretize(Calculation.Ret returnType,
int dimension,
Discretize.DiscretizationMethod method,
int numberOfBins)
|
Matrix |
discretizeToColumns(long column)
|
Matrix |
divide(Calculation.Ret returnType,
boolean ignoreNaN,
double factor)
Divides every entry in the matrix by a scalar. |
Matrix |
divide(Calculation.Ret returnType,
boolean ignoreNaN,
Matrix factor)
Divides every entry in the matrix by the entries of another matrix. |
Matrix |
divide(double divisor)
Divides every entry in the matrix by a scalar. |
Matrix |
divide(Matrix m)
Calculates an entrywise division of the two matrices. |
double |
doubleValue()
|
Matrix[] |
eig()
Calculates the Eigen decomposition of the matrix. |
Matrix[] |
eigSymm()
Calculates the Eigen decomposition of a symmetric matrix. |
Matrix |
eq(Calculation.Ret returnType,
Matrix matrix)
|
Matrix |
eq(Calculation.Ret returnType,
Object value)
|
boolean |
equals(Object o)
|
boolean |
equalsAnnotation(Object o)
|
boolean |
equalsContent(Object o)
|
double |
euklideanDistanceTo(Matrix m,
boolean ignoreNaN)
|
Matrix |
exp(Calculation.Ret returnType)
Calculates the exponential function all entries in the Matrix. |
void |
exportToClipboard(FileFormat format,
Object... parameters)
|
void |
exportToFile(FileFormat format,
File file,
Object... parameters)
|
void |
exportToFile(FileFormat format,
String filename,
Object... parameters)
|
void |
exportToFile(File file,
Object... parameters)
|
void |
exportToFile(String file,
Object... parameters)
|
void |
exportToStream(FileFormat format,
OutputStream outputStream,
Object... parameters)
|
String |
exportToString(FileFormat format,
Object... parameters)
|
void |
exportToWriter(FileFormat format,
Writer writer,
Object... parameters)
|
Matrix |
extractAnnotation(Calculation.Ret returnType,
int dimension)
Generates annotation such as row or column labels from the content of this matrix. |
Matrix |
eye(Calculation.Ret ret)
Returns a matrix with ones at the diagonal. |
Matrix |
fadeIn(Calculation.Ret ret,
int dimension)
|
Matrix |
fadeOut(Calculation.Ret ret,
int dimension)
|
Matrix |
fill(Calculation.Ret ret,
Object value)
Returns a matrix with equal size, where all entries are set to a desired value. |
Matrix |
flipdim(Calculation.Ret returnType,
int dimension)
|
float |
floatValue()
|
Matrix |
floor(Calculation.Ret returnType)
Returns a matrix with all entries rounded down to the next integer. |
Matrix |
ge(Calculation.Ret returnType,
double value)
|
Matrix |
ge(Calculation.Ret returnType,
Matrix matrix)
|
double |
getAbsoluteValueMean()
|
double |
getAbsoluteValueSum()
|
Annotation |
getAnnotation()
|
BigDecimal |
getAsBigDecimal(long... coordinates)
|
BigInteger |
getAsBigInteger(long... coordinates)
|
boolean |
getAsBoolean(long... coordinates)
Returns a byte representation of an entry in the matrix. |
byte |
getAsByte(long... coordinates)
Returns a byte representation of an entry in the matrix. |
char |
getAsChar(long... coordinates)
Returns a char representation of an entry in the matrix. |
Date |
getAsDate(long... coordinates)
Returns a Date representation of an entry in the matrix. |
double |
getAsDouble(long... coordinates)
Returns a double representation of an entry in the matrix. |
float |
getAsFloat(long... coordinates)
Returns a float representation of an entry in the matrix. |
int |
getAsInt(long... coordinates)
Returns an int representation of an entry in the matrix. |
long |
getAsLong(long... coordinates)
Returns a long representation of an entry in the matrix. |
Matrix |
getAsMatrix(long... coordinates)
|
short |
getAsShort(long... coordinates)
Returns a short representation of an entry in the matrix. |
String |
getAsString(long... coordinates)
Returns a String representation of an entry in the matrix. |
Object |
getAxisAnnotation(int axis)
|
Object |
getAxisAnnotation(int axis,
long... position)
|
long |
getColumnCount()
|
long |
getColumnForLabel(Object object)
|
String |
getColumnLabel(long col)
|
Object |
getColumnObject(long col)
|
long[] |
getCoordinatesOfMaximum()
Returns the position of the maximum value in a Matrix. |
long[] |
getCoordinatesOfMinimum()
Returns the position of the minimum value in a Matrix. |
long |
getCoreObjectId()
|
int |
getDimensionCount()
|
double |
getEuklideanValue()
|
MatrixFactoryRoot |
getFactory()
|
GUIObject |
getGUIObject()
Returns an object suitable for displaying on the screen. |
String |
getLabel()
Returns the String label of an object. |
Object |
getMatrixAnnotation()
|
double |
getMaxValue()
|
double |
getMeanValue()
|
double |
getMinValue()
|
long[] |
getPositionForLabel(int dimension,
Object label)
|
Object |
getPreferredObject(long... coordinates)
Returns a representation of the entry in the matrix that reflects the true object best. |
double |
getRMS()
|
long |
getRowCount()
|
long |
getRowForLabel(Object object)
|
String |
getRowLabel(long row)
|
Object |
getRowObject(long row)
|
long |
getSize(int dimension)
|
double |
getStdValue()
|
long |
getValueCount()
|
double |
getValueSum()
|
ValueType |
getValueType()
|
long |
getZCount()
|
Matrix |
ginv()
Calculates a generalized inverse of the Matrix |
Matrix |
gt(Calculation.Ret returnType,
double value)
|
Matrix |
gt(Calculation.Ret returnType,
Matrix matrix)
|
Matrix |
impute(Calculation.Ret returnType,
Impute.ImputationMethod method,
Object... parameters)
Replaces missing values with various methods |
Matrix |
includeAnnotation(Calculation.Ret returnType,
int dimension)
|
Matrix |
indexOfMax(Calculation.Ret returnType,
int dimension)
Finds the index of the maximum value in the matrix |
Matrix |
indexOfMin(Calculation.Ret returnType,
int dimension)
Finds the index of the minimum value in the matrix |
int |
intValue()
|
Matrix |
inv()
Calculates the inverse of the Matrix using either LUDecomposition (for square matrices) or QRDecomposition (otherwise). |
Matrix |
invSPD()
Calculates the inverse of a symmetric positive definite Matrix using Cholesky Decomposition. |
Matrix |
invSymm()
Calculates the inverse of the Matrix using either LUDecomposition (for square matrices) or QRDecomposition (otherwise). |
boolean |
isColumnVector()
|
boolean |
isDiagonal()
|
boolean |
isEmpty()
|
boolean |
isMultidimensionalMatrix()
|
boolean |
isReadOnly()
|
boolean |
isResizable()
|
boolean |
isRowVector()
|
boolean |
isScalar()
|
boolean |
isSingular()
|
boolean |
isSparse()
|
boolean |
isSPD()
|
boolean |
isSquare()
|
boolean |
isSymmetric()
|
boolean |
isTransient()
|
Matrix |
le(Calculation.Ret returnType,
double value)
|
Matrix |
le(Calculation.Ret returnType,
Matrix matrix)
|
Matrix |
log(Calculation.Ret returnType)
Calculates the natural logarithm of all entries in the Matrix. |
Matrix |
log10(Calculation.Ret returnType)
Calculates the logarithm with basis 10 of all entries in the Matrix. |
Matrix |
log2(Calculation.Ret returnType)
Calculates the logarithm with basis 2 of all entries in the Matrix. |
long |
longValue()
|
Matrix |
lowerCase(Calculation.Ret returnType)
|
Matrix |
lt(Calculation.Ret returnType,
double value)
|
Matrix |
lt(Calculation.Ret returnType,
Matrix matrix)
|
Matrix[] |
lu()
Calculates a LU decomposition of the matrix. |
double |
manhattenDistanceTo(Matrix m,
boolean ignoreNaN)
|
Matrix |
max(Calculation.Ret returnType,
int dimension)
Calculates the maximum of the values in the matrix either rowwise, columnwise, or global. |
Matrix |
mean(Calculation.Ret returnType,
int dimension,
boolean ignoreNaN)
Calculates the mean of all entries in the Matrix either per row, per column, or global. |
Matrix |
min(Calculation.Ret returnType,
int dimension)
Calculates the mimimum of the values in the matrix either rowwise, columnwise, or global. |
double |
minkowskiDistanceTo(Matrix m,
double p,
boolean ignoreNaN)
|
Matrix |
minus(Calculation.Ret returnType,
boolean ignoreNaN,
double v)
Subtracts a specified value from all entries in the matrix. |
Matrix |
minus(Calculation.Ret returnType,
boolean ignoreNaN,
Matrix m)
Calculates the difference of the entries in both matrices |
Matrix |
minus(double value)
Subtracts a specified value from all entries in the matrix. |
Matrix |
minus(Matrix m)
Calculates the difference of the entries in both matrices |
Matrix |
mtimes(Calculation.Ret returnType,
boolean ignoreNaN,
double value)
Equal to times() |
Matrix |
mtimes(Calculation.Ret returnType,
boolean ignoreNaN,
Matrix matrix)
Performs a matrix multiplication on the two matrices. |
Matrix |
mtimes(double value)
Equal to times() |
Matrix |
mtimes(Matrix matrix)
Performs a matrix multiplication on the two matrices. |
Matrix |
mutualInf(Calculation.Ret returnType)
Calculates the mutual information. |
Matrix |
ne(Calculation.Ret returnType,
Matrix matrix)
|
Matrix |
ne(Calculation.Ret returnType,
Object value)
|
Iterable<long[]> |
nonZeroCoordinates()
|
double |
norm1()
|
double |
norm2()
|
Matrix |
normalize(Calculation.Ret returnType,
int dimension)
|
double |
normF()
|
double |
normInf()
|
Matrix |
not(Calculation.Ret returnType)
|
void |
notifyGUIObject()
This method is used to signal changes in the object to the corresponding GUIObject if it exists. |
Matrix |
ones(Calculation.Ret ret)
Returns a matrix with equal size, where all entries are set to 1.0. |
Matrix |
or(Calculation.Ret returnType,
boolean value)
|
Matrix |
or(Calculation.Ret returnType,
Matrix matrix)
|
Matrix |
pairedTTest(Calculation.Ret returnType)
Calculates a paired T-Test on the matrix. |
Matrix |
pinv()
Calculates the pseudo inverse of the Matrix using Singular Value Decomposition. |
Matrix |
plus(Calculation.Ret returnType,
boolean ignoreNaN,
double v)
Adds a specified value from all entries in the matrix. |
Matrix |
plus(Calculation.Ret returnType,
boolean ignoreNaN,
Matrix m)
Calculates the sum of the entries in both matrices |
Matrix |
plus(double value)
Adds a specified value to all entries in the matrix. |
Matrix |
plus(Matrix m)
Calculates the sum of the entries in both matrices |
Matrix |
power(Calculation.Ret returnType,
double power)
Calculates this matrix to the power of the given value (entrywise). |
Matrix |
power(Calculation.Ret returnType,
Matrix power)
Calculates this matrix to the power of the given matrix (entrywise). |
Matrix |
princomp()
Projects the matrix into the space of the principal components. |
Matrix |
prod(Calculation.Ret returnType,
int dimension,
boolean ignoreNaN)
|
Matrix[] |
qr()
Calculates a QR decomposition of the matrix. |
Matrix |
rand(Calculation.Ret ret)
Returns a matrix with equal size, where all entries are set to uniform random values between 0.0 and 1.0. |
Matrix |
randn(Calculation.Ret ret)
Returns a matrix with equal size, where all entries are set to random values which are normally distributed with 0.0 mean and 1.0 standard deviation. |
int |
rank()
|
Matrix |
removePunctuation(Calculation.Ret ret)
|
Matrix |
removeWords(Calculation.Ret ret,
Collection<String> words)
|
Matrix |
replace(Calculation.Ret returnType,
Object search,
Object replacement)
Replaces matching values in the matrix with another value |
Matrix |
replaceMissingBy(Matrix matrix)
|
Matrix |
replaceRegex(Calculation.Ret returnType,
Pattern search,
String replacement)
Replaces matching text in every entry of the matrix. |
Matrix |
replaceRegex(Calculation.Ret returnType,
String search,
String replacement)
Replaces matching text in every entry of the matrix. |
Matrix |
reshape(Calculation.Ret returnType,
long... newSize)
|
Matrix |
round(Calculation.Ret returnType)
Returns a matrix with all entries rounded to integer values. |
Matrix |
select(Calculation.Ret returnType,
Collection<? extends Number>... selection)
Selects rows and columns in the Matrix and returns a link to it. |
Matrix |
select(Calculation.Ret returnType,
long[]... selection)
Selects rows and columns in the Matrix and returns a link to it. |
Matrix |
select(Calculation.Ret returnType,
String selection)
Selects rows and columns in the Matrix and returns a link to it. |
Matrix |
selectColumns(Calculation.Ret returnType,
Collection<? extends Number> columns)
Selects columns in the Matrix and returns a link to it. |
Matrix |
selectColumns(Calculation.Ret returnType,
long... columns)
Selects columns in the Matrix and returns a link to it. |
Iterable<long[]> |
selectedCoordinates(long[]... selection)
Returns an Iterator that goes only over the Coordinates defined by the selection. |
Iterable<long[]> |
selectedCoordinates(String selection)
Returns an Iterator that goes only over the Coordinates defined by the selection. |
Matrix |
selectRows(Calculation.Ret returnType,
Collection<? extends Number> rows)
Selects rows in the Matrix and returns a link to it. |
Matrix |
selectRows(Calculation.Ret returnType,
long... rows)
Selects rows in the Matrix and returns a link to it. |
void |
setAnnotation(Annotation annotation)
|
void |
setAsBigDecimal(BigDecimal value,
long... coordinates)
|
void |
setAsBigInteger(BigInteger value,
long... coordinates)
|
void |
setAsBoolean(boolean value,
long... coordinates)
Sets an entry in the matrix to a boolean value. |
void |
setAsByte(byte value,
long... coordinates)
Sets an entry in the matrix to a byte value. |
void |
setAsChar(char value,
long... coordinates)
Sets an entry in the matrix to a char value. |
void |
setAsDate(Date date,
long... coordinates)
Sets an entry in the matrix to a Date value. |
void |
setAsDouble(double v,
long... coordinates)
Sets an entry in the matrix to a double value. |
void |
setAsFloat(float value,
long... coordinates)
Sets an entry in the matrix to a float value. |
void |
setAsInt(int value,
long... coordinates)
Sets an entry in the matrix to an int value. |
void |
setAsLong(long value,
long... coordinates)
Sets an entry in the matrix to a long value. |
void |
setAsMatrix(Matrix m,
long... coordinates)
|
void |
setAsShort(short value,
long... coordinates)
Sets an entry in the matrix to a short value. |
void |
setAsString(String string,
long... coordinates)
Sets an entry in the matrix to a String value. |
void |
setAxisAnnotation(int axis,
Object label)
|
void |
setAxisAnnotation(int axis,
Object label,
long... position)
|
void |
setColumnLabel(long col,
String label)
|
void |
setColumnObject(long col,
Object label)
|
void |
setLabel(String label)
Sets the label of an object |
void |
setMatrixAnnotation(Object value)
|
void |
setRowLabel(long row,
String label)
|
void |
setRowObject(long row,
Object label)
|
void |
setSize(long... size)
Sets the size of the matrix. |
JFrame |
showGUI()
This method will show the object in a JFrame on the screen. |
Matrix |
shuffle(Calculation.Ret returnType)
|
Matrix |
sign(Calculation.Ret returnType)
Calculates the sign of the entries in a Matrix. |
Matrix |
sin(Calculation.Ret returnType)
Calculates the sinus of all entries in the matrix. |
Matrix |
sinh(Calculation.Ret returnType)
Calculates the hyperbolic sinus of all entries in the matrix. |
Matrix |
solve(Matrix b)
Solve A*X = B |
Matrix |
solveSPD(Matrix b)
Solve A*X = B |
Matrix |
solveSymm(Matrix b)
Solve A*X = B |
Matrix |
sortrows(Calculation.Ret returnType,
long column,
boolean reverse)
|
Matrix |
sqrt(Calculation.Ret returnType)
Calculates the square root of all the entries in a Matrix. |
Matrix |
squeeze(Calculation.Ret returnType)
|
Matrix |
standardize(Calculation.Ret returnType,
int dimension)
Subtracts the mean from the matrix and divides by the standard deviation. |
Matrix |
std(Calculation.Ret returnType,
int dimension,
boolean ignoreNaN)
Calculates the standard deviation of all entries in the Matrix either per row, per column, or global. |
Matrix |
stem(Calculation.Ret ret)
|
String |
stringValue()
|
Matrix |
subMatrix(Calculation.Ret returnType,
long startRow,
long startColumn,
long endRow,
long endColumn)
|
Matrix |
sum(Calculation.Ret returnType,
int dimension,
boolean ignoreNaN)
Calculates the sum of all entries in the Matrix either per row, per column, or global. |
Matrix[] |
svd()
Calculates the singular value decomposition of the matrix: A = U*S*V' |
Matrix |
swap(Calculation.Ret returnType,
int dimension,
long pos1,
long pos2)
|
Matrix |
tan(Calculation.Ret returnType)
Calculates the tangens of all entries in the matrix. |
Matrix |
tanh(Calculation.Ret returnType)
Calculates the hyperbolic tangens of all entries in the matrix. |
Matrix |
tfIdf(boolean calculateTf,
boolean calculateIdf,
boolean normalize)
|
Matrix |
times(Calculation.Ret returnType,
boolean ignoreNaN,
double factor)
Multiplies every entry in the matrix with a scalar. |
Matrix |
times(Calculation.Ret returnType,
boolean ignoreNaN,
Matrix factor)
Multiplies every entry in the matrix with the entries of another Matrix. |
Matrix |
times(double factor)
Multiplies every entry in the matrix with a scalar. |
Matrix |
times(Matrix m)
Calculates the entrywise product of the two matrices. |
BigDecimal[][] |
toBigDecimalArray()
|
BigDecimalMatrix |
toBigDecimalMatrix()
|
BigInteger[][] |
toBigIntegerArray()
|
BigIntegerMatrix |
toBigIntegerMatrix()
|
boolean[][] |
toBooleanArray()
Converts the content of a matrix into a 2-dimensional array of boolean values. |
BooleanMatrix |
toBooleanMatrix()
|
byte[][] |
toByteArray()
Converts the content of a matrix into a 2-dimensional array of byte values. |
ByteMatrix |
toByteMatrix()
|
char[][] |
toCharArray()
Converts the content of a matrix into a 2-dimensional array of char values. |
CharMatrix |
toCharMatrix()
|
Matrix |
toColumnVector(Calculation.Ret returnType)
|
Date[][] |
toDateArray()
Converts the content of a matrix into a 2-dimensional array of Date values. |
DateMatrix |
toDateMatrix()
|
double[][] |
toDoubleArray()
Converts the content of a matrix into a 2-dimensional array of double values. |
DoubleMatrix |
toDoubleMatrix()
|
float[][] |
toFloatArray()
Converts the content of a matrix into a 2-dimensional array of float values. |
FloatMatrix |
toFloatMatrix()
|
int[][] |
toIntArray()
Converts the content of a matrix into a 2-dimensional array of int values. |
IntMatrix |
toIntMatrix()
|
ListMatrix<?> |
toListMatrix()
|
long[][] |
toLongArray()
Converts the content of a matrix into a 2-dimensional array of long values. |
LongMatrix |
toLongMatrix()
|
MapMatrix<?,?> |
toMapMatrix()
|
Object[][] |
toObjectArray()
Converts the content of a matrix into a 2-dimensional array of Objects. |
ObjectMatrix |
toObjectMatrix()
|
Matrix |
toRowVector(Calculation.Ret returnType)
|
SetMatrix<?> |
toSetMatrix()
|
short[][] |
toShortArray()
Converts the content of a matrix into a 2-dimensional array of short values. |
ShortMatrix |
toShortMatrix()
|
String |
toString()
|
String[][] |
toStringArray()
Converts the content of a matrix into a 2-dimensional array of Strings. |
StringMatrix |
toStringMatrix()
|
double |
trace()
|
Matrix |
transpose()
Returns the transpose of the Matrix, where rows and columns are exchanged. |
Matrix |
transpose(Calculation.Ret returnType)
Returns the transpose of the Matrix, where rows and columns are exchanged. |
Matrix |
transpose(Calculation.Ret returnType,
int dimension1,
int dimension2)
|
Matrix |
tril(Calculation.Ret returnType,
int k)
|
Matrix |
triu(Calculation.Ret returnType,
int k)
|
Matrix |
unique(Calculation.Ret returnType)
|
Matrix |
uniqueValueCount(Calculation.Ret returnType,
int dimension)
|
Matrix |
upperCase(Calculation.Ret returnType)
|
Matrix |
var(Calculation.Ret returnType,
int dimension,
boolean ignoreNaN)
Calculates the variance of all entries in the Matrix either per row, per column, or global. |
Matrix |
xor(Calculation.Ret returnType,
boolean value)
|
Matrix |
xor(Calculation.Ret returnType,
Matrix matrix)
|
Matrix |
zeros(Calculation.Ret ret)
Returns a matrix with equal size, where all entries are set to zero. |
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ujmp.core.interfaces.CoordinateFunctions |
---|
contains |
Methods inherited from interface org.ujmp.core.interfaces.GettersAndSetters |
---|
getAsObject, setAsObject |
Methods inherited from interface org.ujmp.core.interfaces.BasicMatrixProperties |
---|
byteValue, getSize, getStorageType, shortValue |
Field Detail |
---|
public static MatrixFactoryRoot factory
Constructor Detail |
---|
public AbstractMatrix()
Method Detail |
---|
public Iterable<long[]> allCoordinates()
CoordinateFunctions
allCoordinates
in interface CoordinateFunctions
public final long getCoreObjectId()
getCoreObjectId
in interface CoreObject
public double getAsDouble(long... coordinates)
GettersAndSetters
getAsDouble
in interface GettersAndSetters
coordinates
- location of the entry
public void setAsDouble(double v, long... coordinates)
GettersAndSetters
setAsDouble
in interface GettersAndSetters
v
- double valuecoordinates
- location of the entrypublic final Object getPreferredObject(long... coordinates) throws MatrixException
GettersAndSetters
getPreferredObject
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public final Object getMatrixAnnotation()
getMatrixAnnotation
in interface HasAnnotation
public ValueType getValueType()
getValueType
in interface BasicMatrixProperties
public final void setMatrixAnnotation(Object value)
setMatrixAnnotation
in interface HasAnnotation
public final Object getAxisAnnotation(int axis, long... position)
getAxisAnnotation
in interface HasAnnotation
public final Object getAxisAnnotation(int axis)
getAxisAnnotation
in interface HasAnnotation
public final void setAxisAnnotation(int axis, Object label, long... position)
setAxisAnnotation
in interface HasAnnotation
public final void setAxisAnnotation(int axis, Object label)
setAxisAnnotation
in interface HasAnnotation
public final GUIObject getGUIObject()
HasGUIObject
getGUIObject
in interface HasGUIObject
public final boolean containsMissingValues() throws MatrixException
containsMissingValues
in interface BasicMatrixProperties
MatrixException
public final double getEuklideanValue() throws MatrixException
getEuklideanValue
in interface BasicMatrixProperties
MatrixException
public Matrix clone()
clone
in interface CoreObject
clone
in interface Matrix
clone
in class Object
public final Matrix select(Calculation.Ret returnType, long[]... selection) throws MatrixException
ObjectCalculations
select
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns
MatrixException
public final Matrix select(Calculation.Ret returnType, Collection<? extends Number>... selection) throws MatrixException
ObjectCalculations
select
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns
MatrixException
public Matrix selectRows(Calculation.Ret returnType, long... rows) throws MatrixException
ObjectCalculations
selectRows
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows
MatrixException
public final Matrix select(Calculation.Ret returnType, String selection) throws MatrixException
ObjectCalculations
select
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.selection
- String defining the selection
MatrixException
public Matrix selectColumns(Calculation.Ret returnType, long... columns) throws MatrixException
ObjectCalculations
selectColumns
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.
MatrixException
public final Matrix selectRows(Calculation.Ret returnType, Collection<? extends Number> rows) throws MatrixException
ObjectCalculations
selectRows
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows
MatrixException
public final Matrix selectColumns(Calculation.Ret returnType, Collection<? extends Number> columns) throws MatrixException
ObjectCalculations
selectColumns
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.columns
- selected columns
MatrixException
public Matrix impute(Calculation.Ret returnType, Impute.ImputationMethod method, Object... parameters) throws MatrixException
MissingValueDoubleCalculations
impute
in interface MissingValueDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixmethod
- the imputation method to useparameters
- specify a set of parameters if needed
MatrixException
public Matrix discretize(Calculation.Ret returnType, int dimension, Discretize.DiscretizationMethod method, int numberOfBins) throws MatrixException
discretize
in interface IntCalculations
MatrixException
public Matrix indexOfMax(Calculation.Ret returnType, int dimension) throws MatrixException
StatisticalDoubleCalculations
indexOfMax
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- The axis along which to calculate
MatrixException
public Matrix indexOfMin(Calculation.Ret returnType, int dimension) throws MatrixException
StatisticalDoubleCalculations
indexOfMin
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- The axis along which to calculate
MatrixException
public Matrix standardize(Calculation.Ret returnType, int dimension) throws MatrixException
MiscGeneralDoubleCalculations
standardize
in interface MiscGeneralDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- The axis along which to calculate
MatrixException
public Matrix normalize(Calculation.Ret returnType, int dimension) throws MatrixException
normalize
in interface MiscGeneralDoubleCalculations
MatrixException
public Matrix atimes(Calculation.Ret returnType, boolean ignoreNaN, Matrix matrix) throws MatrixException
BasicDoubleCalculations
atimes
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredmatrix
- the second matrix
MatrixException
public Matrix inv() throws MatrixException
DecompositionDoubleCalculations
inv
in interface DecompositionDoubleCalculations
MatrixException
public Matrix invSymm() throws MatrixException
DecompositionDoubleCalculations
invSymm
in interface DecompositionDoubleCalculations
MatrixException
public Matrix invSPD() throws MatrixException
DecompositionDoubleCalculations
invSPD
in interface DecompositionDoubleCalculations
MatrixException
public Matrix solve(Matrix b)
DecompositionDoubleCalculations
solve
in interface DecompositionDoubleCalculations
b
- right hand side
public Matrix solveSymm(Matrix b)
DecompositionDoubleCalculations
solveSymm
in interface DecompositionDoubleCalculations
b
- right hand side
public Matrix solveSPD(Matrix b)
DecompositionDoubleCalculations
solveSPD
in interface DecompositionDoubleCalculations
b
- right hand side
public Matrix ginv() throws MatrixException
DecompositionDoubleCalculations
ginv
in interface DecompositionDoubleCalculations
MatrixException
public Matrix princomp() throws MatrixException
DecompositionDoubleCalculations
princomp
in interface DecompositionDoubleCalculations
MatrixException
public Matrix pinv() throws MatrixException
DecompositionDoubleCalculations
pinv
in interface DecompositionDoubleCalculations
MatrixException
public Matrix center(Calculation.Ret returnType, int dimension, boolean ignoreNaN) throws MatrixException
MiscGeneralDoubleCalculations
center
in interface MiscGeneralDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- The axis along which to calculateignoreNaN
- should missing values be ignored
MatrixException
public Matrix copy() throws MatrixException
matrix.clone()
instead
copy
in interface ObjectCalculations
MatrixException
public boolean isResizable()
isResizable
in interface BasicMatrixProperties
public final Matrix convert(ValueType newValueType) throws MatrixException
ObjectCalculations
convert
in interface ObjectCalculations
newValueType
- defines the new format of the matrix
MatrixException
public final Matrix replaceRegex(Calculation.Ret returnType, Pattern search, String replacement) throws MatrixException
StringCalculations
replaceRegex
in interface StringCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixsearch
- Regular expression pattern to search forreplacement
- Replacement String
MatrixException
public final Matrix replace(Calculation.Ret returnType, Object search, Object replacement) throws MatrixException
ObjectCalculations
replace
in interface ObjectCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixsearch
- Object to search forreplacement
- Object used to replace the original value
MatrixException
public final Matrix replaceRegex(Calculation.Ret returnType, String search, String replacement) throws MatrixException
StringCalculations
replaceRegex
in interface StringCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixsearch
- Regular expression to search forreplacement
- Replacement String
MatrixException
public Matrix times(double factor) throws MatrixException
BasicDoubleCalculations
times
in interface BasicDoubleCalculations
factor
- factor to multiply with
MatrixException
public Matrix times(Matrix m) throws MatrixException
BasicDoubleCalculations
times
in interface BasicDoubleCalculations
m
- the second matrix
MatrixException
public Matrix divide(Matrix m) throws MatrixException
BasicDoubleCalculations
divide
in interface BasicDoubleCalculations
m
- the second matrix
MatrixException
public Matrix divide(double divisor) throws MatrixException
BasicDoubleCalculations
divide
in interface BasicDoubleCalculations
divisor
- factor by which to divide
MatrixException
public Matrix divide(Calculation.Ret returnType, boolean ignoreNaN, double factor) throws MatrixException
BasicDoubleCalculations
divide
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredfactor
- factor by which to divide
MatrixException
public Matrix times(Calculation.Ret returnType, boolean ignoreNaN, double factor) throws MatrixException
BasicDoubleCalculations
times
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredfactor
- factor to multiply with
MatrixException
public Matrix times(Calculation.Ret returnType, boolean ignoreNaN, Matrix factor) throws MatrixException
BasicDoubleCalculations
times
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredfactor
- factor to multiply with
MatrixException
public Matrix divide(Calculation.Ret returnType, boolean ignoreNaN, Matrix factor) throws MatrixException
BasicDoubleCalculations
divide
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredfactor
- factor by which to divide
MatrixException
public final Matrix power(Calculation.Ret returnType, double power) throws MatrixException
BasicEntrywiseDoubleCalculations
power
in interface BasicEntrywiseDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final Matrix power(Calculation.Ret returnType, Matrix power) throws MatrixException
BasicEntrywiseDoubleCalculations
power
in interface BasicEntrywiseDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final Matrix gt(Calculation.Ret returnType, Matrix matrix) throws MatrixException
gt
in interface BooleanCalculations
MatrixException
public final Matrix gt(Calculation.Ret returnType, double value) throws MatrixException
gt
in interface BooleanCalculations
MatrixException
public final Matrix and(Calculation.Ret returnType, Matrix matrix) throws MatrixException
and
in interface BooleanCalculations
MatrixException
public final Matrix and(Calculation.Ret returnType, boolean value) throws MatrixException
and
in interface BooleanCalculations
MatrixException
public final Matrix or(Calculation.Ret returnType, Matrix matrix) throws MatrixException
or
in interface BooleanCalculations
MatrixException
public final Matrix or(Calculation.Ret returnType, boolean value) throws MatrixException
or
in interface BooleanCalculations
MatrixException
public final Matrix xor(Calculation.Ret returnType, Matrix matrix) throws MatrixException
xor
in interface BooleanCalculations
MatrixException
public final Matrix xor(Calculation.Ret returnType, boolean value) throws MatrixException
xor
in interface BooleanCalculations
MatrixException
public final Matrix not(Calculation.Ret returnType) throws MatrixException
not
in interface BooleanCalculations
MatrixException
public final Matrix lt(Calculation.Ret returnType, Matrix matrix) throws MatrixException
lt
in interface BooleanCalculations
MatrixException
public final Matrix lt(Calculation.Ret returnType, double value) throws MatrixException
lt
in interface BooleanCalculations
MatrixException
public final Matrix ge(Calculation.Ret returnType, Matrix matrix) throws MatrixException
ge
in interface BooleanCalculations
MatrixException
public final Matrix ge(Calculation.Ret returnType, double value) throws MatrixException
ge
in interface BooleanCalculations
MatrixException
public final Matrix le(Calculation.Ret returnType, Matrix matrix) throws MatrixException
le
in interface BooleanCalculations
MatrixException
public final Matrix le(Calculation.Ret returnType, double value) throws MatrixException
le
in interface BooleanCalculations
MatrixException
public final Matrix eq(Calculation.Ret returnType, Matrix matrix) throws MatrixException
eq
in interface BooleanCalculations
MatrixException
public final Matrix eq(Calculation.Ret returnType, Object value) throws MatrixException
eq
in interface BooleanCalculations
MatrixException
public final Matrix ne(Calculation.Ret returnType, Matrix matrix) throws MatrixException
ne
in interface BooleanCalculations
MatrixException
public final Matrix ne(Calculation.Ret returnType, Object value) throws MatrixException
ne
in interface BooleanCalculations
MatrixException
public long getValueCount()
getValueCount
in interface BasicMatrixProperties
public final long[] getCoordinatesOfMaximum() throws MatrixException
CoordinateFunctions
getCoordinatesOfMaximum
in interface CoordinateFunctions
MatrixException
public final long[] getCoordinatesOfMinimum() throws MatrixException
CoordinateFunctions
getCoordinatesOfMinimum
in interface CoordinateFunctions
MatrixException
public Iterable<long[]> selectedCoordinates(String selection) throws MatrixException
CoordinateFunctions
selectedCoordinates
in interface CoordinateFunctions
selection
- The String defining the selection of rows or columns
MatrixException
public Iterable<long[]> selectedCoordinates(long[]... selection) throws MatrixException
CoordinateFunctions
selectedCoordinates
in interface CoordinateFunctions
selection
- A list of long arrays defining the desired rows or columns
MatrixException
public boolean isTransient()
isTransient
in interface BasicMatrixProperties
public Iterable<long[]> nonZeroCoordinates()
nonZeroCoordinates
in interface CoordinateFunctions
public Iterable<long[]> availableCoordinates()
CoordinateFunctions
availableCoordinates
in interface CoordinateFunctions
public double[][] toDoubleArray() throws MatrixException
GettersAndSetters
toDoubleArray
in interface GettersAndSetters
MatrixException
public Object[][] toObjectArray() throws MatrixException
GettersAndSetters
toObjectArray
in interface GettersAndSetters
MatrixException
public int[][] toIntArray() throws MatrixException
GettersAndSetters
toIntArray
in interface GettersAndSetters
MatrixException
public long[][] toLongArray() throws MatrixException
GettersAndSetters
toLongArray
in interface GettersAndSetters
MatrixException
public short[][] toShortArray() throws MatrixException
GettersAndSetters
toShortArray
in interface GettersAndSetters
MatrixException
public char[][] toCharArray() throws MatrixException
GettersAndSetters
toCharArray
in interface GettersAndSetters
MatrixException
public String[][] toStringArray() throws MatrixException
GettersAndSetters
toStringArray
in interface GettersAndSetters
MatrixException
public byte[][] toByteArray() throws MatrixException
GettersAndSetters
toByteArray
in interface GettersAndSetters
MatrixException
public boolean[][] toBooleanArray() throws MatrixException
GettersAndSetters
toBooleanArray
in interface GettersAndSetters
MatrixException
public float[][] toFloatArray() throws MatrixException
GettersAndSetters
toFloatArray
in interface GettersAndSetters
MatrixException
public Date[][] toDateArray() throws MatrixException
GettersAndSetters
toDateArray
in interface GettersAndSetters
MatrixException
public BigDecimal[][] toBigDecimalArray() throws MatrixException
toBigDecimalArray
in interface GettersAndSetters
MatrixException
public BigInteger[][] toBigIntegerArray() throws MatrixException
toBigIntegerArray
in interface GettersAndSetters
MatrixException
public final Matrix sqrt(Calculation.Ret returnType) throws MatrixException
BasicEntrywiseDoubleCalculations
sqrt
in interface BasicEntrywiseDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final Matrix round(Calculation.Ret returnType) throws MatrixException
RoundingDoubleCalculations
round
in interface RoundingDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final Matrix ceil(Calculation.Ret returnType) throws MatrixException
RoundingDoubleCalculations
ceil
in interface RoundingDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final Matrix extractAnnotation(Calculation.Ret returnType, int dimension) throws MatrixException
ObjectCalculations
extractAnnotation
in interface ObjectCalculations
returnType
- Specify whether to return a new matrix, or a linkdimension
- Which axis should be shortened to extract the labels. E.g. if
you want column labels, you must specify
Matrix.ROW
, which does not seem very intuitive at
first glance. However, if you're dealing with
multi-dimensional data, this becomes more clear. If you want
annotation generated for all dimensions, you can specify
Matrix.ALL
or omit the dimensions parameter.
MatrixException
public final Matrix includeAnnotation(Calculation.Ret returnType, int dimension) throws MatrixException
includeAnnotation
in interface ObjectCalculations
MatrixException
public final Matrix floor(Calculation.Ret returnType) throws MatrixException
RoundingDoubleCalculations
floor
in interface RoundingDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final JFrame showGUI()
HasGUIObject
showGUI
in interface HasGUIObject
public void notifyGUIObject()
HasGUIObject
Maybe this method can be deleted, when all changes are made trough the GUIObject?
notifyGUIObject
in interface HasGUIObject
public Matrix mtimes(Matrix matrix) throws MatrixException
BasicDoubleCalculations
mtimes
in interface BasicDoubleCalculations
matrix
- the second matrix
MatrixException
public Matrix mtimes(Calculation.Ret returnType, boolean ignoreNaN, Matrix matrix) throws MatrixException
BasicDoubleCalculations
mtimes
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredmatrix
- the second matrix
MatrixException
public Matrix mtimes(double value) throws MatrixException
BasicDoubleCalculations
mtimes
in interface BasicDoubleCalculations
value
- the value
MatrixException
public Matrix mtimes(Calculation.Ret returnType, boolean ignoreNaN, double value) throws MatrixException
BasicDoubleCalculations
mtimes
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredvalue
- the value to multiply
MatrixException
public boolean getAsBoolean(long... coordinates) throws MatrixException
GettersAndSetters
getAsBoolean
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public void setAsBoolean(boolean value, long... coordinates) throws MatrixException
GettersAndSetters
setAsBoolean
in interface GettersAndSetters
value
- boolean valuecoordinates
- location of the entry
MatrixException
public int getAsInt(long... coordinates) throws MatrixException
GettersAndSetters
getAsInt
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public void setAsInt(int value, long... coordinates) throws MatrixException
GettersAndSetters
setAsInt
in interface GettersAndSetters
value
- int valuecoordinates
- location of the entry
MatrixException
public byte getAsByte(long... coordinates) throws MatrixException
GettersAndSetters
getAsByte
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public void setAsByte(byte value, long... coordinates) throws MatrixException
GettersAndSetters
setAsByte
in interface GettersAndSetters
value
- byte valuecoordinates
- location of the entry
MatrixException
public char getAsChar(long... coordinates) throws MatrixException
GettersAndSetters
getAsChar
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public BigInteger getAsBigInteger(long... coordinates) throws MatrixException
getAsBigInteger
in interface GettersAndSetters
MatrixException
public BigDecimal getAsBigDecimal(long... coordinates) throws MatrixException
getAsBigDecimal
in interface GettersAndSetters
MatrixException
public void setAsChar(char value, long... coordinates) throws MatrixException
GettersAndSetters
setAsChar
in interface GettersAndSetters
value
- char valuecoordinates
- location of the entry
MatrixException
public void setAsBigDecimal(BigDecimal value, long... coordinates) throws MatrixException
setAsBigDecimal
in interface GettersAndSetters
MatrixException
public void setAsBigInteger(BigInteger value, long... coordinates) throws MatrixException
setAsBigInteger
in interface GettersAndSetters
MatrixException
public float getAsFloat(long... coordinates) throws MatrixException
GettersAndSetters
getAsFloat
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public void setAsFloat(float value, long... coordinates) throws MatrixException
GettersAndSetters
setAsFloat
in interface GettersAndSetters
value
- float valuecoordinates
- location of the entry
MatrixException
public short getAsShort(long... coordinates) throws MatrixException
GettersAndSetters
getAsShort
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public Matrix getAsMatrix(long... coordinates) throws MatrixException
getAsMatrix
in interface GettersAndSetters
MatrixException
public void setAsMatrix(Matrix m, long... coordinates) throws MatrixException
setAsMatrix
in interface GettersAndSetters
MatrixException
public void setAsShort(short value, long... coordinates) throws MatrixException
GettersAndSetters
setAsShort
in interface GettersAndSetters
value
- short valuecoordinates
- location of the entry
MatrixException
public long getAsLong(long... coordinates) throws MatrixException
GettersAndSetters
getAsLong
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public void setAsLong(long value, long... coordinates) throws MatrixException
GettersAndSetters
setAsLong
in interface GettersAndSetters
value
- long valuecoordinates
- location of the entry
MatrixException
public Date getAsDate(long... coordinates) throws MatrixException
GettersAndSetters
getAsDate
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public void setAsDate(Date date, long... coordinates) throws MatrixException
GettersAndSetters
setAsDate
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public final Matrix delete(Calculation.Ret returnType, String selection) throws MatrixException
ObjectCalculations
delete
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.selection
- String defining the selection
MatrixException
public final Matrix delete(Calculation.Ret returnType, Collection<? extends Number>... selection) throws MatrixException
ObjectCalculations
delete
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns
MatrixException
public final Matrix delete(Calculation.Ret returnType, long[]... selection) throws MatrixException
ObjectCalculations
delete
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns
MatrixException
public final Matrix deleteRows(Calculation.Ret returnType, long... rows) throws MatrixException
ObjectCalculations
deleteRows
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows
MatrixException
public final Matrix deleteRows(Calculation.Ret returnType, Collection<? extends Number> rows) throws MatrixException
ObjectCalculations
deleteRows
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows
MatrixException
public final Matrix deleteColumns(Calculation.Ret returnType, Collection<? extends Number> columns) throws MatrixException
ObjectCalculations
deleteColumns
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.columns
- selected columns
MatrixException
public final Matrix deleteColumns(Calculation.Ret returnType, long... columns) throws MatrixException
ObjectCalculations
deleteColumns
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.
MatrixException
public Matrix minus(Calculation.Ret returnType, boolean ignoreNaN, double v) throws MatrixException
BasicDoubleCalculations
minus
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredv
- the value to subtract
MatrixException
public Matrix minus(Calculation.Ret returnType, boolean ignoreNaN, Matrix m) throws MatrixException
BasicDoubleCalculations
minus
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredm
- The matrix to subtract
MatrixException
public Matrix plus(Calculation.Ret returnType, boolean ignoreNaN, double v) throws MatrixException
BasicDoubleCalculations
plus
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredv
- the value to subtract
MatrixException
public Matrix plus(Calculation.Ret returnType, boolean ignoreNaN, Matrix m) throws MatrixException
BasicDoubleCalculations
plus
in interface BasicDoubleCalculations
returnType
- Defines if a new Matrix or a link should be returned.ignoreNaN
- should missing values be ignoredm
- The matrix to subtract
MatrixException
public Matrix transpose() throws MatrixException
ObjectCalculations
transpose
in interface ObjectCalculations
MatrixException
public Matrix transpose(Calculation.Ret returnType) throws MatrixException
ObjectCalculations
transpose
in interface ObjectCalculations
returnType
- Defines if a new Matrix or a link should be returned.
MatrixException
public Matrix mean(Calculation.Ret returnType, int dimension, boolean ignoreNaN) throws MatrixException
StatisticalDoubleCalculations
mean
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- The axis along which to calculateignoreNaN
- should missing values be ignored
MatrixException
public Matrix var(Calculation.Ret returnType, int dimension, boolean ignoreNaN) throws MatrixException
StatisticalDoubleCalculations
var
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- The axis along which to calculateignoreNaN
- should missing values be ignored
MatrixException
public Matrix std(Calculation.Ret returnType, int dimension, boolean ignoreNaN) throws MatrixException
StatisticalDoubleCalculations
std
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- The axis along which to calculateignoreNaN
- should missing values be ignored
MatrixException
public long getColumnCount()
getColumnCount
in interface BasicMatrixProperties
public long getRowCount()
getRowCount
in interface BasicMatrixProperties
public long getZCount()
getZCount
in interface BasicMatrixProperties
public final long getSize(int dimension)
getSize
in interface BasicMatrixProperties
public Matrix prod(Calculation.Ret returnType, int dimension, boolean ignoreNaN) throws MatrixException
prod
in interface StatisticalDoubleCalculations
MatrixException
public Matrix diff(Calculation.Ret returnType, int dimension, boolean ignoreNaN) throws MatrixException
diff
in interface StatisticalDoubleCalculations
MatrixException
public final Matrix sum(Calculation.Ret returnType, int dimension, boolean ignoreNaN) throws MatrixException
StatisticalDoubleCalculations
sum
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- The axis along which to calculateignoreNaN
- should missing values be ignored
MatrixException
public final Matrix sign(Calculation.Ret returnType) throws MatrixException
BasicEntrywiseDoubleCalculations
sign
in interface BasicEntrywiseDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public String toString()
toString
in interface BasicMatrixProperties
toString
in class Object
public final int getDimensionCount()
getDimensionCount
in interface BasicMatrixProperties
public final Matrix ones(Calculation.Ret ret) throws MatrixException
CreatorDoubleCalculations
ones
in interface CreatorDoubleCalculations
MatrixException
public final Matrix fill(Calculation.Ret ret, Object value) throws MatrixException
ObjectCalculations
fill
in interface ObjectCalculations
value
- fill with this value
MatrixException
public final Matrix zeros(Calculation.Ret ret) throws MatrixException
CreatorDoubleCalculations
zeros
in interface CreatorDoubleCalculations
MatrixException
public final Matrix eye(Calculation.Ret ret) throws MatrixException
CreatorDoubleCalculations
eye
in interface CreatorDoubleCalculations
MatrixException
public Matrix plus(double value) throws MatrixException
BasicDoubleCalculations
plus
in interface BasicDoubleCalculations
value
- the value to add
MatrixException
public Matrix plus(Matrix m) throws MatrixException
BasicDoubleCalculations
plus
in interface BasicDoubleCalculations
m
- The matrix to add
MatrixException
public Matrix minus(double value) throws MatrixException
BasicDoubleCalculations
minus
in interface BasicDoubleCalculations
value
- the value to subtract
MatrixException
public Matrix minus(Matrix m) throws MatrixException
BasicDoubleCalculations
minus
in interface BasicDoubleCalculations
m
- The matrix to subtract
MatrixException
public void clear()
clear
in interface Clearable
public final Matrix rand(Calculation.Ret ret) throws MatrixException
CreatorDoubleCalculations
rand
in interface CreatorDoubleCalculations
MatrixException
public final Matrix randn(Calculation.Ret ret) throws MatrixException
CreatorDoubleCalculations
randn
in interface CreatorDoubleCalculations
MatrixException
public final int compareTo(Matrix m)
compareTo
in interface Comparable<Matrix>
public int rank() throws MatrixException
rank
in interface BasicMatrixProperties
MatrixException
public final boolean isSPD()
isSPD
in interface BasicMatrixProperties
public final boolean isSymmetric()
isSymmetric
in interface BasicMatrixProperties
public boolean isEmpty() throws MatrixException
isEmpty
in interface BasicMatrixProperties
MatrixException
public final Matrix abs(Calculation.Ret returnType) throws MatrixException
BasicEntrywiseDoubleCalculations
abs
in interface BasicEntrywiseDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final Matrix log(Calculation.Ret returnType) throws MatrixException
BasicEntrywiseDoubleCalculations
log
in interface BasicEntrywiseDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final Matrix exp(Calculation.Ret returnType) throws MatrixException
BasicEntrywiseDoubleCalculations
exp
in interface BasicEntrywiseDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final Matrix sortrows(Calculation.Ret returnType, long column, boolean reverse) throws MatrixException
sortrows
in interface ObjectCalculations
MatrixException
public final Matrix cumsum(boolean ignoreNaN) throws MatrixException
cumsum
in interface StatisticalDoubleCalculations
MatrixException
public final Matrix cumprod(boolean ignoreNaN) throws MatrixException
cumprod
in interface StatisticalDoubleCalculations
MatrixException
public final Matrix log2(Calculation.Ret returnType) throws MatrixException
BasicEntrywiseDoubleCalculations
log2
in interface BasicEntrywiseDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final Matrix log10(Calculation.Ret returnType) throws MatrixException
BasicEntrywiseDoubleCalculations
log10
in interface BasicEntrywiseDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public final boolean isDiagonal() throws MatrixException
isDiagonal
in interface BasicMatrixProperties
MatrixException
public final boolean isSquare()
isSquare
in interface BasicMatrixProperties
public double euklideanDistanceTo(Matrix m, boolean ignoreNaN) throws MatrixException
euklideanDistanceTo
in interface DistanceMeasures
MatrixException
public double det() throws MatrixException
det
in interface BasicMatrixProperties
MatrixException
public boolean isSingular() throws MatrixException
isSingular
in interface BasicMatrixProperties
MatrixException
public double manhattenDistanceTo(Matrix m, boolean ignoreNaN) throws MatrixException
manhattenDistanceTo
in interface DistanceMeasures
MatrixException
public double minkowskiDistanceTo(Matrix m, double p, boolean ignoreNaN) throws MatrixException
minkowskiDistanceTo
in interface DistanceMeasures
MatrixException
public double chebyshevDistanceTo(Matrix m, boolean ignoreNaN) throws MatrixException
chebyshevDistanceTo
in interface DistanceMeasures
MatrixException
public Matrix min(Calculation.Ret returnType, int dimension) throws MatrixException
StatisticalDoubleCalculations
min
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- the axis along which should be calculated, e.g. ROW=0,
COLUMN=1 or ALL
MatrixException
public Matrix max(Calculation.Ret returnType, int dimension) throws MatrixException
StatisticalDoubleCalculations
max
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- the axis along which should be calculated, e.g. ROW=0,
COLUMN=1 or ALL
MatrixException
public final Matrix addMissing(Calculation.Ret returnType, int dimension, double... percentMissing) throws MatrixException
MissingValueDoubleCalculations
addMissing
in interface MissingValueDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- The axis along which to calculatepercentMissing
- defines how many values are missing 0.0 to 1.0
MatrixException
public Matrix countMissing(Calculation.Ret returnType, int dimension) throws MatrixException
MissingValueDoubleCalculations
countMissing
in interface MissingValueDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrixdimension
- The axis along which to calculate
MatrixException
public final boolean isScalar()
isScalar
in interface BasicMatrixProperties
public final boolean isRowVector()
isRowVector
in interface BasicMatrixProperties
public final boolean isColumnVector()
isColumnVector
in interface BasicMatrixProperties
public final boolean isMultidimensionalMatrix()
isMultidimensionalMatrix
in interface BasicMatrixProperties
public Matrix sinh(Calculation.Ret returnType) throws MatrixException
HyperbolicDoubleCalculations
sinh
in interface HyperbolicDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public Matrix cosh(Calculation.Ret returnType) throws MatrixException
HyperbolicDoubleCalculations
cosh
in interface HyperbolicDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public Matrix tanh(Calculation.Ret returnType) throws MatrixException
HyperbolicDoubleCalculations
tanh
in interface HyperbolicDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public Matrix sin(Calculation.Ret returnType) throws MatrixException
TrigonometricDoubleCalculations
sin
in interface TrigonometricDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public Matrix cos(Calculation.Ret returnType) throws MatrixException
TrigonometricDoubleCalculations
cos
in interface TrigonometricDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public Matrix tril(Calculation.Ret returnType, int k) throws MatrixException
tril
in interface ObjectCalculations
MatrixException
public Matrix triu(Calculation.Ret returnType, int k) throws MatrixException
triu
in interface ObjectCalculations
MatrixException
public Matrix tan(Calculation.Ret returnType) throws MatrixException
TrigonometricDoubleCalculations
tan
in interface TrigonometricDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public Matrix cov(Calculation.Ret returnType, boolean ignoreNaN) throws MatrixException
StatisticalDoubleCalculations
cov
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original MatrixignoreNaN
- should missing values be ignored
MatrixException
public Matrix corrcoef(Calculation.Ret returnType, boolean ignoreNaN) throws MatrixException
StatisticalDoubleCalculations
corrcoef
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original MatrixignoreNaN
- should missing values be ignored
MatrixException
public Matrix mutualInf(Calculation.Ret returnType) throws MatrixException
StatisticalDoubleCalculations
mutualInf
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public Matrix pairedTTest(Calculation.Ret returnType) throws MatrixException
StatisticalDoubleCalculations
pairedTTest
in interface StatisticalDoubleCalculations
returnType
- Select whether a new or a linked Matrix is returned, or if the
operation is performed on the original Matrix
MatrixException
public Matrix bootstrap(Calculation.Ret returnType) throws MatrixException
bootstrap
in interface ObjectCalculations
MatrixException
public Matrix lowerCase(Calculation.Ret returnType) throws MatrixException
lowerCase
in interface StringCalculations
MatrixException
public Matrix upperCase(Calculation.Ret returnType) throws MatrixException
upperCase
in interface StringCalculations
MatrixException
public Matrix tfIdf(boolean calculateTf, boolean calculateIdf, boolean normalize) throws MatrixException
tfIdf
in interface StringCalculations
MatrixException
public Matrix removePunctuation(Calculation.Ret ret) throws MatrixException
removePunctuation
in interface StringCalculations
MatrixException
public Matrix stem(Calculation.Ret ret) throws MatrixException
stem
in interface StringCalculations
MatrixException
public Matrix removeWords(Calculation.Ret ret, Collection<String> words) throws MatrixException
removeWords
in interface StringCalculations
MatrixException
public Matrix unique(Calculation.Ret returnType) throws MatrixException
unique
in interface ObjectCalculations
MatrixException
public Matrix uniqueValueCount(Calculation.Ret returnType, int dimension) throws MatrixException
uniqueValueCount
in interface ObjectCalculations
MatrixException
public Matrix bootstrap(Calculation.Ret returnType, int count) throws MatrixException
bootstrap
in interface ObjectCalculations
MatrixException
public Matrix transpose(Calculation.Ret returnType, int dimension1, int dimension2) throws MatrixException
transpose
in interface ObjectCalculations
MatrixException
public Matrix swap(Calculation.Ret returnType, int dimension, long pos1, long pos2) throws MatrixException
swap
in interface ObjectCalculations
MatrixException
public Matrix flipdim(Calculation.Ret returnType, int dimension) throws MatrixException
flipdim
in interface ObjectCalculations
MatrixException
public final Matrix shuffle(Calculation.Ret returnType) throws MatrixException
shuffle
in interface ObjectCalculations
MatrixException
public final double trace() throws MatrixException
trace
in interface BasicMatrixProperties
MatrixException
public final void exportToFile(File file, Object... parameters) throws MatrixException, IOException
exportToFile
in interface ExportMatrixInterface
MatrixException
IOException
public final void exportToClipboard(FileFormat format, Object... parameters) throws MatrixException, IOException
exportToClipboard
in interface ExportMatrixInterface
MatrixException
IOException
public final void exportToFile(String file, Object... parameters) throws MatrixException, IOException
exportToFile
in interface ExportMatrixInterface
MatrixException
IOException
public final void exportToFile(FileFormat format, String filename, Object... parameters) throws MatrixException, IOException
exportToFile
in interface ExportMatrixInterface
MatrixException
IOException
public final void exportToFile(FileFormat format, File file, Object... parameters) throws MatrixException, IOException
exportToFile
in interface ExportMatrixInterface
MatrixException
IOException
public final void exportToStream(FileFormat format, OutputStream outputStream, Object... parameters) throws MatrixException, IOException
exportToStream
in interface ExportMatrixInterface
MatrixException
IOException
public final void exportToWriter(FileFormat format, Writer writer, Object... parameters) throws MatrixException, IOException
exportToWriter
in interface ExportMatrixInterface
MatrixException
IOException
public final void setLabel(String label)
HasLabel
setLabel
in interface HasLabel
label
- the new label.public final String getLabel()
HasLabel
getLabel
in interface HasLabel
public void setAsString(String string, long... coordinates) throws MatrixException
GettersAndSetters
setAsString
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public boolean isReadOnly()
isReadOnly
in interface BasicMatrixProperties
public String getAsString(long... coordinates) throws MatrixException
GettersAndSetters
getAsString
in interface GettersAndSetters
coordinates
- location of the entry
MatrixException
public final double getMaxValue() throws MatrixException
getMaxValue
in interface BasicMatrixProperties
MatrixException
public final double getMinValue() throws MatrixException
getMinValue
in interface BasicMatrixProperties
MatrixException
public final double getMeanValue() throws MatrixException
getMeanValue
in interface BasicMatrixProperties
MatrixException
public final double getStdValue() throws MatrixException
getStdValue
in interface BasicMatrixProperties
MatrixException
public final double getValueSum() throws MatrixException
getValueSum
in interface BasicMatrixProperties
MatrixException
public final double getAbsoluteValueSum() throws MatrixException
getAbsoluteValueSum
in interface BasicMatrixProperties
MatrixException
public final String getColumnLabel(long col)
getColumnLabel
in interface HasAnnotation
public final String getRowLabel(long row)
getRowLabel
in interface HasAnnotation
public final long getRowForLabel(Object object)
getRowForLabel
in interface HasAnnotation
public final long getColumnForLabel(Object object)
getColumnForLabel
in interface HasAnnotation
public final long[] getPositionForLabel(int dimension, Object label)
getPositionForLabel
in interface HasAnnotation
public final Object getRowObject(long row)
getRowObject
in interface HasAnnotation
public final Object getColumnObject(long col)
getColumnObject
in interface HasAnnotation
public final void setColumnLabel(long col, String label)
setColumnLabel
in interface HasAnnotation
public final void setRowLabel(long row, String label)
setRowLabel
in interface HasAnnotation
public final void setRowObject(long row, Object label)
setRowObject
in interface HasAnnotation
public final void setColumnObject(long col, Object label)
setColumnObject
in interface HasAnnotation
public final double getAbsoluteValueMean() throws MatrixException
getAbsoluteValueMean
in interface BasicMatrixProperties
MatrixException
public final Matrix toRowVector(Calculation.Ret returnType) throws MatrixException
toRowVector
in interface ObjectCalculations
MatrixException
public final Matrix toColumnVector(Calculation.Ret returnType) throws MatrixException
toColumnVector
in interface ObjectCalculations
MatrixException
public Matrix replaceMissingBy(Matrix matrix) throws MatrixException
replaceMissingBy
in interface MiscGeneralDoubleCalculations
MatrixException
public final Matrix deleteColumnsWithMissingValues(Calculation.Ret returnType) throws MatrixException
deleteColumnsWithMissingValues
in interface MissingValueDoubleCalculations
MatrixException
public final Matrix deleteRowsWithMissingValues(Calculation.Ret returnType, long threshold) throws MatrixException
deleteRowsWithMissingValues
in interface MissingValueDoubleCalculations
MatrixException
public final Matrix appendHorizontally(Matrix m) throws MatrixException
appendHorizontally
in interface MiscGeneralDoubleCalculations
MatrixException
public Iterable<Object> allValues()
allValues
in interface BasicMatrixProperties
public final Matrix appendVertically(Matrix m) throws MatrixException
appendVertically
in interface MiscGeneralDoubleCalculations
MatrixException
public final Matrix append(int dimension, Matrix m) throws MatrixException
append
in interface MiscGeneralDoubleCalculations
MatrixException
public final Matrix discretizeToColumns(long column) throws MatrixException
discretizeToColumns
in interface DiscretizeCalculations
MatrixException
public final Matrix subMatrix(Calculation.Ret returnType, long startRow, long startColumn, long endRow, long endColumn) throws MatrixException
subMatrix
in interface ObjectCalculations
MatrixException
public Matrix[] svd() throws MatrixException
DecompositionDoubleCalculations
svd
in interface DecompositionDoubleCalculations
MatrixException
public Matrix[] eig() throws MatrixException
DecompositionDoubleCalculations
eig
in interface DecompositionDoubleCalculations
MatrixException
public Matrix[] eigSymm() throws MatrixException
DecompositionDoubleCalculations
eigSymm
in interface DecompositionDoubleCalculations
MatrixException
public Matrix[] qr() throws MatrixException
DecompositionDoubleCalculations
qr
in interface DecompositionDoubleCalculations
MatrixException
public Matrix[] lu() throws MatrixException
DecompositionDoubleCalculations
lu
in interface DecompositionDoubleCalculations
MatrixException
public Matrix chol() throws MatrixException
DecompositionDoubleCalculations
chol
in interface DecompositionDoubleCalculations
MatrixException
public final String exportToString(FileFormat format, Object... parameters) throws MatrixException, IOException
exportToString
in interface ExportMatrixInterface
MatrixException
IOException
public void setSize(long... size)
BasicMatrixProperties
MatrixException
is thrown.
setSize
in interface BasicMatrixProperties
size
- the new size of the matrixpublic final Matrix reshape(Calculation.Ret returnType, long... newSize)
reshape
in interface ObjectCalculations
public final Matrix squeeze(Calculation.Ret returnType)
squeeze
in interface ObjectCalculations
public final double doubleValue() throws MatrixException
doubleValue
in interface BasicMatrixProperties
doubleValue
in class Number
MatrixException
public final int intValue() throws MatrixException
intValue
in interface BasicMatrixProperties
intValue
in class Number
MatrixException
public final char charValue() throws MatrixException
charValue
in interface BasicMatrixProperties
MatrixException
public final BigInteger bigIntegerValue() throws MatrixException
bigIntegerValue
in interface BasicMatrixProperties
MatrixException
public final BigDecimal bigDecimalValue() throws MatrixException
bigDecimalValue
in interface BasicMatrixProperties
MatrixException
public final Matrix fadeIn(Calculation.Ret ret, int dimension) throws MatrixException
fadeIn
in interface MiscGeneralDoubleCalculations
MatrixException
public final Matrix fadeOut(Calculation.Ret ret, int dimension) throws MatrixException
fadeOut
in interface MiscGeneralDoubleCalculations
MatrixException
public final float floatValue() throws MatrixException
floatValue
in interface BasicMatrixProperties
floatValue
in class Number
MatrixException
public final long longValue() throws MatrixException
longValue
in interface BasicMatrixProperties
longValue
in class Number
MatrixException
public final Date dateValue() throws MatrixException
dateValue
in interface BasicMatrixProperties
MatrixException
public final boolean booleanValue() throws MatrixException
booleanValue
in interface BasicMatrixProperties
MatrixException
public final String stringValue() throws MatrixException
stringValue
in interface BasicMatrixProperties
MatrixException
public final double getRMS() throws MatrixException
getRMS
in interface BasicMatrixProperties
MatrixException
public final Annotation getAnnotation()
getAnnotation
in interface HasAnnotation
public final void setAnnotation(Annotation annotation)
setAnnotation
in interface HasAnnotation
public final boolean equalsAnnotation(Object o)
equalsAnnotation
in interface BasicMatrixProperties
public final boolean equals(Object o)
equals
in interface BasicMatrixProperties
equals
in class Object
public final boolean equalsContent(Object o)
equalsContent
in interface BasicMatrixProperties
public final BooleanMatrix toBooleanMatrix()
toBooleanMatrix
in interface Conversions
public final ByteMatrix toByteMatrix()
toByteMatrix
in interface Conversions
public final CharMatrix toCharMatrix()
toCharMatrix
in interface Conversions
public final DateMatrix toDateMatrix()
toDateMatrix
in interface Conversions
public final DoubleMatrix toDoubleMatrix()
toDoubleMatrix
in interface Conversions
public final FloatMatrix toFloatMatrix()
toFloatMatrix
in interface Conversions
public final IntMatrix toIntMatrix()
toIntMatrix
in interface Conversions
public final LongMatrix toLongMatrix()
toLongMatrix
in interface Conversions
public final BigDecimalMatrix toBigDecimalMatrix()
toBigDecimalMatrix
in interface Conversions
public final BigIntegerMatrix toBigIntegerMatrix()
toBigIntegerMatrix
in interface Conversions
public final ObjectMatrix toObjectMatrix()
toObjectMatrix
in interface Conversions
public final ShortMatrix toShortMatrix()
toShortMatrix
in interface Conversions
public final StringMatrix toStringMatrix()
toStringMatrix
in interface Conversions
public double norm1()
norm1
in interface BasicMatrixProperties
public double norm2()
norm2
in interface BasicMatrixProperties
public double normInf()
normInf
in interface BasicMatrixProperties
public double normF()
normF
in interface BasicMatrixProperties
public ListMatrix<?> toListMatrix()
toListMatrix
in interface Conversions
public SetMatrix<?> toSetMatrix()
toSetMatrix
in interface Conversions
public MapMatrix<?,?> toMapMatrix()
toMapMatrix
in interface Conversions
public final boolean isSparse()
isSparse
in interface BasicMatrixProperties
public boolean containsBigInteger(BigInteger v)
containsBigInteger
in interface BasicMatrixProperties
public boolean containsBigDecimal(BigDecimal v)
containsBigDecimal
in interface BasicMatrixProperties
public boolean containsDate(Date v)
containsDate
in interface BasicMatrixProperties
public boolean containsObject(Object o)
containsObject
in interface BasicMatrixProperties
public boolean containsString(String s)
containsString
in interface BasicMatrixProperties
public boolean containsBoolean(boolean v)
containsBoolean
in interface BasicMatrixProperties
public boolean containsByte(byte v)
containsByte
in interface BasicMatrixProperties
public boolean containsChar(char v)
containsChar
in interface BasicMatrixProperties
public boolean containsDouble(double v)
containsDouble
in interface BasicMatrixProperties
public boolean containsFloat(float v)
containsFloat
in interface BasicMatrixProperties
public boolean containsInt(int v)
containsInt
in interface BasicMatrixProperties
public boolean containsLong(long v)
containsLong
in interface BasicMatrixProperties
public boolean containsShort(short v)
containsShort
in interface BasicMatrixProperties
public boolean containsNull()
containsNull
in interface BasicMatrixProperties
public MatrixFactoryRoot getFactory()
getFactory
in interface Matrix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |