public class DenseFileMatrix extends AbstractDenseDoubleMatrixMultiD implements Erasable, Closeable
| Modifier and Type | Field and Description |
|---|---|
static int |
BOOLEAN |
static int |
BYTE |
static int |
CHAR |
static int |
DOUBLE |
static int |
FLOAT |
static int |
INT |
static int |
INTLITTLEENDIAN |
static int |
LONG |
static int |
LONGLITTLEENDIAN |
static int |
SHORT |
static int |
SHORTLITTLEENDIAN |
static int |
UNSIGNEDBYTE |
static int |
UNSIGNEDSHORT |
guiObject, sizeFactorychol, divideMatrix, divideScalar, eig, inv, lu, minusMatrix, minusScalar, mtimes, plusMatrix, plusScalar, qr, solve, svd, timesMatrix, timesScalar, transposeALL, COLUMN, LINK, NEW, NONE, ORIG, ROW, X, Y, ZDIMENSIONMETADATADESCRIPTIONFactory| Constructor and Description |
|---|
DenseFileMatrix(File file) |
DenseFileMatrix(File file,
int dataType,
long... size) |
DenseFileMatrix(File file,
long... size) |
DenseFileMatrix(File file,
long offset,
int dataType,
boolean readOnly,
long... size) |
DenseFileMatrix(int bufferSize,
File file,
long offset,
int dataType,
boolean readOnly,
long... size) |
DenseFileMatrix(long... size) |
DenseFileMatrix(Matrix m) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
erase() |
protected void |
finalize() |
int |
getBitsPerValue() |
int |
getBufferSize() |
long |
getBytesPerValue() |
int |
getDataType() |
double |
getDouble(long... c)
Returns a double representation of an entry in the matrix.
|
File |
getFile() |
long |
getFileLength() |
static int |
getIntLittleEndian(byte[] bytes) |
BufferedRandomAccessFile |
getRandomAccessFile() |
static int |
getShortLittleEndian(byte[] bytes) |
boolean |
isReadOnly() |
void |
setBufferSize(int bufferSize) |
void |
setDouble(double value,
long... c)
Sets an entry in the matrix to a double value.
|
void |
setSize(long... size)
Sets the size of the matrix.
|
availableCoordinates, clear, containsCoordinates, isSparsegetDouble, getDouble, setDouble, setDoublegetAsDouble, getNumber, getObject, getValueType, setAsDouble, setNumber, setObjectgetAsObject, getObject, getObject, setAsObject, setObject, setObjectabs, addMissing, allCoordinates, allValues, and, and, append, appendHorizontally, appendVertically, atimes, bigDecimalValue, bigIntegerValue, booleanValue, bootstrap, bootstrap, ceil, center, charValue, chebyshevDistanceTo, chol, clone, compareTo, containsBigDecimal, containsBigInteger, containsBoolean, containsByte, containsChar, containsDate, containsDouble, containsFloat, containsInt, containsLong, containsMissingValues, containsNull, containsObject, containsShort, containsString, convert, convertEncoding, corrcoef, cos, cosh, cosineSimilarity, cosineSimilarityTo, countMissing, cov, cumprod, cumsum, dateValue, delete, delete, delete, deleteColumns, deleteColumns, deleteColumnsWithMissingValues, deleteRows, deleteRows, deleteRowsWithMissingValues, det, diag, diff, discretize, discretize, discretizeToBoolean, discretizeToColumns, divide, divide, divide, divide, doubleValue, eig, eigSymm, eq, eq, equals, equalsAnnotation, equalsContent, euklideanDistance, euklideanDistanceTo, exp, exportTo, extractAnnotation, eye, fadeIn, fadeOut, fill, fireValueChanged, fireValueChanged, fireValueChanged, flipdim, floatValue, floor, ge, ge, getAbsoluteValueMean, getAbsoluteValueSum, getAsBigDecimal, getAsBigInteger, getAsBoolean, getAsByte, getAsByteArray, getAsChar, getAsDate, getAsFloat, getAsInt, getAsLong, getAsMatrix, getAsShort, getAsString, getColumnCount, getColumnForLabel, getColumnLabel, getColumnList, getCoordinatesOfMaximum, getCoordinatesOfMinimum, getCoreObjectId, getDescription, getDimensionCount, getDimensionLabel, getDimensionMetaData, getEuklideanValue, getFactory, getGUIObject, getId, getLabel, getLabelObject, getMaxValue, getMeanValue, getMetaData, getMetaData, getMetaDataDimensionMatrix, getMetaDataDouble, getMetaDataMatrix, getMetaDataString, getMinValue, getPositionForLabel, getPreferredObject, getRMS, getRowCount, getRowForLabel, getRowLabel, getRowList, getSize, getSize, getStdValue, getValueCount, getValueSum, getZCount, ginv, grayScale, gt, gt, importFrom, impute, includeAnnotation, indexOfMax, indexOfMin, intValue, inv, invSPD, invSymm, isColumnVector, isDiagonal, isEmpty, isMultidimensionalMatrix, isResizable, isRowVector, isScalar, isSingular, isSPD, isSquare, isSymmetric, isTransient, le, le, log, log10, log2, logistic, longValue, lowerCase, lt, lt, lu, manhattenDistance, manhattenDistanceTo, max, mean, min, minkowskiDistance, minkowskiDistanceTo, minus, minus, minus, minus, mtimes, mtimes, mutualInf, nans, ne, ne, nonZeroCoordinates, norm1, norm2, normalize, normF, normInf, not, ones, or, or, pairedTTest, pdet, pinv, pinv, plus, plus, plus, plus, power, power, princomp, prod, qr, rand, randn, rank, removePunctuation, removeWords, replace, replaceMissingBy, replaceRegex, replaceRegex, reshape, round, save, save, select, select, select, selectColumns, selectColumns, selectedCoordinates, selectedCoordinates, selectRows, selectRows, setAsBigDecimal, setAsBigInteger, setAsBoolean, setAsByte, setAsByteArray, setAsChar, setAsDate, setAsFloat, setAsInt, setAsLong, setAsMatrix, setAsShort, setAsString, setColumnLabel, setContent, setDescription, setDimensionLabel, setDimensionMetaData, setId, setLabel, setMetaData, setMetaData, setMetaDataDimensionMatrix, setRowLabel, share, share, showGUI, shuffle, sign, sin, sinh, solve, solveSPD, solveSymm, sortrows, sqrt, squeeze, standardize, std, stem, stringValue, subMatrix, sum, svd, svd, swap, tan, tanh, tanh, tfIdf, times, times, times, times, toBigDecimalArray, toBigDecimalMatrix, toBigIntegerArray, toBigIntegerMatrix, toBooleanArray, toBooleanMatrix, toByteArray, toByteMatrix, toCharArray, toCharMatrix, toColumnVector, toDateArray, toDoubleArray, toDoubleMatrix, toFloatArray, toFloatMatrix, toHtml, toIntArray, toIntMatrix, toListMatrix, toLongArray, toLongMatrix, toMapMatrix, toObjectArray, toObjectMatrix, toRowVector, toSetMatrix, toShortArray, toShortMatrix, toString, toStringArray, toStringMatrix, trace, translate, transpose, transpose, transpose, tril, triu, unique, uniqueValueCount, upperCase, var, xor, xor, zerosbyteValue, shortValuegetClass, hashCode, notify, notifyAll, wait, wait, waitgetNumber, setNumbergetObject, setObjectclone, exportTo, fireValueChanged, fireValueChanged, fireValueChanged, importFrom, save, save, share, share, toHtmlgetFactoryallValues, equals, equalsAnnotation, equalsContent, getColumnCount, getColumnList, getDimensionCount, getRowCount, getRowList, getSize, getSize, getValueCount, getValueType, getZCount, isColumnVector, isDiagonal, isEmpty, isMultidimensionalMatrix, isResizable, isRowVector, isScalar, isSingular, isSquare, isSymmetric, isTransient, toStringgetCoreObjectIdgetGUIObject, showGUIallCoordinates, getCoordinatesOfMaximum, getCoordinatesOfMinimum, nonZeroCoordinates, selectedCoordinates, selectedCoordinatesgetAsBigDecimal, getAsBigInteger, getAsBoolean, getAsByte, getAsByteArray, getAsChar, getAsDate, getAsDouble, getAsFloat, getAsInt, getAsLong, getAsMatrix, getAsObject, getAsShort, getAsString, getPreferredObject, setAsBigDecimal, setAsBigInteger, setAsBoolean, setAsByte, setAsByteArray, setAsChar, setAsDate, setAsDouble, setAsFloat, setAsInt, setAsLong, setAsMatrix, setAsObject, setAsShort, setAsString, toBigDecimalArray, toBigIntegerArray, toBooleanArray, toByteArray, toCharArray, toDateArray, toDoubleArray, toFloatArray, toIntArray, toLongArray, toObjectArray, toShortArray, toStringArrayatimes, divide, divide, divide, divide, minus, minus, minus, minus, mtimes, mtimes, plus, plus, plus, plus, times, times, times, timesabs, exp, log, log10, log2, logistic, power, power, sign, sqrtceil, floor, roundcosh, sinh, tanh, tanhcos, sin, taneye, nans, ones, rand, randn, zerosgrayScalecorrcoef, cov, cumprod, cumsum, diff, indexOfMax, indexOfMin, max, mean, min, mutualInf, pairedTTest, prod, std, sum, varchol, eig, eigSymm, ginv, inv, invSPD, invSymm, lu, pinv, pinv, princomp, qr, solve, solveSPD, solveSymm, svd, svdaddMissing, countMissing, deleteColumnsWithMissingValues, deleteRowsWithMissingValues, imputeappend, appendHorizontally, appendVertically, center, fadeIn, fadeOut, normalize, replaceMissingBy, standardizediscretize, discretize, discretizeToBoolean, discretizeToColumnsand, and, eq, eq, ge, ge, gt, gt, le, le, lt, lt, ne, ne, not, or, or, xor, xorconvertEncoding, lowerCase, removePunctuation, removeWords, replaceRegex, replaceRegex, stem, tfIdf, translate, upperCasebootstrap, bootstrap, convert, delete, delete, delete, deleteColumns, deleteColumns, deleteRows, deleteRows, diag, extractAnnotation, fill, flipdim, includeAnnotation, replace, reshape, select, select, select, selectColumns, selectColumns, selectRows, selectRows, shuffle, sortrows, squeeze, subMatrix, swap, toColumnVector, toRowVector, transpose, transpose, transpose, tril, triu, unique, uniqueValueCountchebyshevDistanceTo, cosineSimilarity, cosineSimilarityTo, euklideanDistance, euklideanDistanceTo, manhattenDistance, manhattenDistanceTo, minkowskiDistance, minkowskiDistanceTocompareTogetColumnForLabel, getColumnLabel, getDimensionLabel, getDimensionMetaData, getMetaData, getMetaData, getMetaDataDimensionMatrix, getMetaDataDouble, getMetaDataMatrix, getMetaDataString, getPositionForLabel, getRowForLabel, getRowLabel, setColumnLabel, setDimensionLabel, setDimensionMetaData, setMetaData, setMetaData, setMetaDataDimensionMatrix, setRowLabelgetLabel, getLabelObject, setLabelgetDescription, setDescriptiontoBigDecimalMatrix, toBigIntegerMatrix, toBooleanMatrix, toByteMatrix, toCharMatrix, toDoubleMatrix, toFloatMatrix, toIntMatrix, toListMatrix, toLongMatrix, toMapMatrix, toObjectMatrix, toSetMatrix, toShortMatrix, toStringMatrixbigDecimalValue, bigIntegerValue, booleanValue, byteValue, charValue, containsBigDecimal, containsBigInteger, containsBoolean, containsByte, containsChar, containsDate, containsDouble, containsFloat, containsInt, containsLong, containsMissingValues, containsNull, containsObject, containsShort, containsString, dateValue, det, doubleValue, floatValue, getAbsoluteValueMean, getAbsoluteValueSum, getEuklideanValue, getMaxValue, getMeanValue, getMinValue, getRMS, getStdValue, getValueSum, intValue, isSPD, longValue, norm1, norm2, normF, normInf, pdet, rank, setContent, shortValue, stringValue, tracegetObject, getObject, setObject, setObjectpublic static final int BYTE
public static final int CHAR
public static final int DOUBLE
public static final int FLOAT
public static final int INT
public static final int LONG
public static final int SHORT
public static final int UNSIGNEDBYTE
public static final int UNSIGNEDSHORT
public static final int SHORTLITTLEENDIAN
public static final int INTLITTLEENDIAN
public static final int LONGLITTLEENDIAN
public static final int BOOLEAN
public DenseFileMatrix(File file, long... size) throws IOException
IOExceptionpublic DenseFileMatrix(File file) throws IOException
IOExceptionpublic DenseFileMatrix(File file, int dataType, long... size) throws IOException
IOExceptionpublic DenseFileMatrix(File file, long offset, int dataType, boolean readOnly, long... size) throws IOException
IOExceptionpublic DenseFileMatrix(int bufferSize,
File file,
long offset,
int dataType,
boolean readOnly,
long... size)
throws IOException
IOExceptionpublic DenseFileMatrix(long... size)
throws IOException
IOExceptionpublic DenseFileMatrix(Matrix m) throws IOException
IOExceptionpublic int getBufferSize()
public void setBufferSize(int bufferSize)
public BufferedRandomAccessFile getRandomAccessFile()
public File getFile()
public long getBytesPerValue()
public int getBitsPerValue()
public long getFileLength()
public int getDataType()
public double getDouble(long... c)
DoubleMatrixMultiDgetDouble in interface DoubleMatrixMultiDc - location of the entrypublic void setSize(long... size)
BaseMatrixPropertiesMatrixException is thrown.setSize in interface BaseMatrixPropertiessetSize in class AbstractMatrixsize - the new size of the matrixpublic void setDouble(double value,
long... c)
DoubleMatrixMultiDsetDouble in interface DoubleMatrixMultiDvalue - double valuec - location of the entry @protected void finalize()
throws Throwable
public boolean isReadOnly()
isReadOnly in interface BaseMatrixPropertiesisReadOnly in class AbstractMatrixpublic static final int getShortLittleEndian(byte[] bytes)
public static final int getIntLittleEndian(byte[] bytes)
public void erase()
throws IOException
erase in interface ErasableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015 Universal Java Matrix Package. All rights reserved.