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>
-
public class DenseObject3DMatrix<R,C,S> extends AbstractMatrix3D<R,C,S,Object>
- Author:
- ?
-
-
Field Summary
-
Fields inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrix3D
colMap, colNames, rowMap, rowNames, sliceMap, sliceNames
-
-
Constructor Summary
Constructors Constructor Description DenseObject3DMatrix(int slices, int rows, int columns)
DenseObject3DMatrix(Object[][][] data)
DenseObject3DMatrix(Object[][][] data, List<S> sliceNames, List<R> rowNames, List<C> colNames)
DenseObject3DMatrix(List<S> sliceNames, List<R> rowNames, List<C> colNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
columns()
Get the number of columns the matrix has.Object
get(int slice, int row, int col)
Object[]
getCol(int slice, int col)
Object
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
numMissing()
Return the number of missing values in the matrix.int
rows()
Get the number of rows the matrix hasvoid
set(int slice, int row, int col, Object val)
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
-
-
-
-
Method Detail
-
columns
public int columns()
Description copied from interface:Matrix3D
Get the number of columns the matrix has.
-
get
public Object get(int slice, int row, int col)
-
getCol
public Object[] getCol(int slice, int col)
-
getObject
public Object getObject(int slice, int row, int col)
-
getRow
public Object[] getRow(int slice, int row)
-
getSlice
public Object[][] getSlice(int slice)
-
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
public void set(int slice, int row, int col, Object val)
-
-