public abstract class AbstractMatrix3D<R,C,S,V> extends Object implements Matrix3D<R,C,S,V>
Modifier and Type | Field and Description |
---|---|
LinkedHashMap<C,Integer> |
colMap |
List<C> |
colNames |
LinkedHashMap<R,Integer> |
rowMap |
List<R> |
rowNames |
LinkedHashMap<S,Integer> |
sliceMap |
List<S> |
sliceNames |
Constructor and Description |
---|
AbstractMatrix3D() |
Modifier and Type | Method and Description |
---|---|
void |
addColumnName(C s,
int index)
Add a column name associated with an index.
|
void |
addRowName(R s,
int index)
Add a row name associated with a row index.
|
void |
addSliceName(S s,
int index)
Add a slice name
|
abstract int |
columns()
Get the number of columns the matrix has.
|
boolean |
containsColumnName(Object columnName)
Check if the matrix contains a column name
|
boolean |
containsRowName(Object rowName)
Check if the matrix contains a row name
|
boolean |
containsSliceName(Object sliceName)
Check if the matrix contains a slice name
|
int |
getColIndexByName(Object s)
Get the index of a column by name.
|
C |
getColName(int i)
Get the column name for an index.
|
Iterator<C> |
getColNameIterator() |
List<C> |
getColNames() |
int |
getRowIndexByName(R s)
Get the index of a row by name.
|
R |
getRowName(int i)
Get the row name for an index
|
Iterator<R> |
getRowNameIterator() |
List<R> |
getRowNames() |
int |
getSliceIndexByName(S s)
Get a slice index
|
S |
getSliceName(int i)
Get a slice name
|
Iterator<S> |
getSliceNameIterator() |
List<S> |
getSliceNames() |
boolean |
hasColNames()
Check if this matrix has a valid set of column names.
|
boolean |
hasRow(Object r) |
boolean |
hasRowNames() |
boolean |
hasSliceNames() |
abstract boolean |
isMissing(int slice,
int row,
int col)
Check if the value at a given index is missing.
|
abstract int |
numMissing()
Return the number of missing values in the matrix.
|
abstract int |
rows()
Get the number of rows the matrix has
|
void |
setColumnNames(List<C> v) |
void |
setRowNames(List<R> v) |
void |
setSliceNames(List<S> v) |
abstract int |
slices() |
public LinkedHashMap<C,Integer> colMap
public LinkedHashMap<R,Integer> rowMap
public LinkedHashMap<S,Integer> sliceMap
public final void addColumnName(C s, int index)
Matrix3D
public final void addRowName(R s, int index)
Matrix3D
public final void addSliceName(S s, int index)
Matrix3D
public abstract int columns()
Matrix3D
public final boolean containsColumnName(Object columnName)
Matrix3D
public final boolean containsRowName(Object rowName)
Matrix3D
public final boolean containsSliceName(Object sliceName)
Matrix3D
public final int getColIndexByName(Object s)
Matrix3D
public C getColName(int i)
Matrix3D
public int getRowIndexByName(R s)
Matrix3D
public R getRowName(int i)
Matrix3D
public int getSliceIndexByName(S s)
Matrix3D
public S getSliceName(int i)
Matrix3D
public boolean hasColNames()
Matrix3D
public boolean hasRow(Object r)
public boolean hasRowNames()
public boolean hasSliceNames()
public abstract boolean isMissing(int slice, int row, int col)
Matrix3D
public abstract int numMissing()
Matrix3D
public abstract int rows()
Matrix3D
Copyright © 2003–2022 UBC Michael Smith Laboratories. All rights reserved.