public class StringMatrix<R,C> extends AbstractMatrix<R,C,String> implements ObjectMatrix<R,C,String>
MAX_ROWS_TO_PRINT
Constructor and Description |
---|
StringMatrix(int x,
int y) |
Modifier and Type | Method and Description |
---|---|
int |
columns()
Get the number of columns the matrix has.
|
String |
get(int row,
int column) |
String |
get(R row,
C column) |
String |
getByKeys(R r,
C c) |
String[] |
getColObj(int col) |
String[] |
getColumn(int col) |
String |
getEntry(int row,
int column) |
String |
getObject(int row,
int col) |
String[] |
getRow(int row) |
boolean |
isMissing(int i,
int j)
Strings are considered missing if they are whitespace, null or empty.
|
int |
rows()
Get the number of rows the matrix has
|
void |
set(int row,
int column,
String value) |
void |
setByKeys(R r,
C c,
String v) |
int |
size() |
ObjectMatrix<R,C,String> |
subset(int startRow,
int startCol,
int numRow,
int numCol) |
ObjectMatrix<R,C,String> |
subsetColumns(List<C> columns) |
String |
toString() |
cern.colt.matrix.ObjectMatrix1D |
viewColumn(int column) |
cern.colt.matrix.ObjectMatrix1D |
viewRow(int row) |
addColumnName, addRowName, asDoubles, assign, checkColRange, checkRowRange, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasMissingValues, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNames
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addColumnName, asDoubles, assign, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNames
public ObjectMatrix<R,C,String> subsetColumns(List<C> columns)
subsetColumns
in interface ObjectMatrix<R,C,String>
columns
- public int columns()
Matrix2D
public String get(int row, int column)
get
in interface ObjectMatrix<R,C,String>
row
- column
- public String[] getColObj(int col)
public String[] getColumn(int col)
getColumn
in interface ObjectMatrix<R,C,String>
public String getEntry(int row, int column)
public String getObject(int row, int col)
public boolean isMissing(int i, int j)
public int rows()
Matrix2D
public void set(int row, int column, String value)
public int size()
size
in class AbstractMatrix<R,C,String>
public ObjectMatrix<R,C,String> subset(int startRow, int startCol, int numRow, int numCol)
subset
in interface ObjectMatrix<R,C,String>
public cern.colt.matrix.ObjectMatrix1D viewColumn(int column)
column
- public cern.colt.matrix.ObjectMatrix1D viewRow(int row)
row
- Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.