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 intcolumns()Get the number of columns the matrix has.Objectget(int slice, int row, int col)Object[]getCol(int slice, int col)ObjectgetObject(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.intnumMissing()Return the number of missing values in the matrix.introws()Get the number of rows the matrix hasvoidset(int slice, int row, int col, Object val)intslices()-
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:Matrix3DGet 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: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
public void set(int slice, int row, int col, Object val)
-
-