Class DenseObject3DMatrix<R,C,S>
java.lang.Object
ubic.basecode.dataStructure.matrix.AbstractMatrix3D<R,C,S,Object>
ubic.basecode.dataStructure.matrix.DenseObject3DMatrix<R,C,S>
- Author:
- ?
-
Field Summary
Fields inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrix3D
colMap, colNames, rowMap, rowNames, sliceMap, sliceNames -
Constructor Summary
ConstructorsConstructorDescriptionDenseObject3DMatrix(int slices, int rows, int columns) DenseObject3DMatrix(Object[][][] data) -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()Get the number of columns the matrix has.get(int slice, int row, int col) Object[]getCol(int slice, int col) getObject(int slice, int row, int col) Object[]getRow(int slice, int row) Object[][]getSlice(int slice) booleanisMissing(int slice, int row, int col) Check if the value at a given index is missing.intReturn the number of missing values in the matrix.introws()Get the number of rows the matrix hasvoidintslices()Methods inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrix3D
addColumnName, addRowName, addSliceName, containsColumnName, containsRowName, containsSliceName, getColIndexByName, getColName, getColNameIterator, getColNames, getRowIndexByName, getRowName, getRowNameIterator, getRowNames, getSliceIndexByName, getSliceName, getSliceNameIterator, getSliceNames, hasColNames, hasRow, hasRowNames, hasSliceNames, setColumnNames, setRowNames, setSliceNames
-
Constructor Details
-
DenseObject3DMatrix
public DenseObject3DMatrix(int slices, int rows, int columns) -
DenseObject3DMatrix
-
DenseObject3DMatrix
-
DenseObject3DMatrix
-
-
Method Details
-
columns
public int columns()Description copied from interface:Matrix3DGet the number of columns the matrix has. -
get
-
getCol
-
getObject
-
getRow
-
getSlice
-
isMissing
public boolean isMissing(int slice, int row, int col) Description copied from interface:Matrix3DCheck if the value at a given index is missing. -
numMissing
public int numMissing()Description copied from interface:Matrix3DReturn the number of missing values in the matrix.- Specified by:
numMissingin interfaceMatrix3D<R,C, S, Object> - Specified by:
numMissingin classAbstractMatrix3D<R,C, S, Object> - Returns:
- number missing
-
rows
public int rows()Description copied from interface:Matrix3DGet the number of rows the matrix has -
set
-
slices
public int slices()
-