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 TypeMethodDescriptionint
columns()
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) boolean
isMissing
(int slice, int row, int col) Check if the value at a given index is missing.int
Return the number of missing values in the matrix.int
rows()
Get the number of rows the matrix hasvoid
int
slices()
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:Matrix3D
Get 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:Matrix3D
Check if the value at a given index is missing. -
numMissing
public int numMissing()Description copied from interface:Matrix3D
Return the number of missing values in the matrix.- Specified by:
numMissing
in interfaceMatrix3D<R,
C, S, Object> - Specified by:
numMissing
in classAbstractMatrix3D<R,
C, S, Object> - Returns:
- number missing
-
rows
public int rows()Description copied from interface:Matrix3D
Get the number of rows the matrix has -
set
-
slices
public int slices()
-