Class ObjectMatrixImpl<R,C,V>  
java.lang.Object
ubic.basecode.dataStructure.matrix.AbstractMatrix<R,C,V>
  
ubic.basecode.dataStructure.matrix.ObjectMatrixImpl<R,C,V>  
- All Implemented Interfaces:
- Serializable,- Matrix2D<R,,- C, - V> - ObjectMatrix<R,- C, - V> 
Matrix that can hold any type of object
- Author:
- pavlidis
- See Also:
- 
Field SummaryFields inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrixMAX_ROWS_TO_PRINT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcolumns()Get the number of columns the matrix has.get(int row, int column) V[]getColumn(int col) getEntry(int row, int column) V[]getRow(int row) booleanisMissing(int i, int j) Check if the value at a given index is missing.introws()Get the number of rows the matrix hasvoidvoidintsize()ObjectMatrix<R, C, V> subset(int startRow, int startCol, int numRow, int numCol) subsetColumns(List<C> columns) toString()viewColumn(int column) viewRow(int row) Methods inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrixaddColumnName, addRowName, asDoubles, assign, checkColRange, checkRowRange, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasMissingValues, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNamesMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ubic.basecode.dataStructure.matrix.Matrix2DaddColumnName, asDoubles, assign, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNames
- 
Constructor Details- 
ObjectMatrixImplpublic ObjectMatrixImpl(int x, int y) 
 
- 
- 
Method Details- 
subsetColumns- Specified by:
- subsetColumnsin interface- ObjectMatrix<R,- C, - V> 
- Parameters:
- columns-
- Returns:
 
- 
columnspublic int columns()Description copied from interface:Matrix2DGet the number of columns the matrix has.
- 
get- Specified by:
- getin interface- ObjectMatrix<R,- C, - V> 
- Parameters:
- row-
- column-
- Returns:
 
- 
get
- 
getByKeys
- 
getColumn- Specified by:
- getColumnin interface- ObjectMatrix<R,- C, - V> 
 
- 
getEntry
- 
getRow- Specified by:
- getRowin interface- ObjectMatrix<R,- C, - V> 
 
- 
isMissingpublic boolean isMissing(int i, int j) Description copied from interface:Matrix2DCheck if the value at a given index is missing.
- 
rowspublic int rows()Description copied from interface:Matrix2DGet the number of rows the matrix has
- 
set
- 
setByKeys
- 
sizepublic int size()- Specified by:
- sizein class- AbstractMatrix<R,- C, - V> 
- Returns:
 
- 
subset- Specified by:
- subsetin interface- ObjectMatrix<R,- C, - V> 
- Parameters:
- startRow-
- startCol-
- numRow-
- numCol-
- Returns:
 
- 
toString
- 
viewColumn- Parameters:
- column-
- Returns:
 
- 
viewRow- Parameters:
- row-
- Returns:
 
 
-