public interface Matrix3D<R,C,S,V>
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
|
int |
columns()
Get the number of columns the matrix has.
|
boolean |
containsColumnName(C columnName)
Check if the matrix contains a column name
|
boolean |
containsRowName(R rowName)
Check if the matrix contains a row name
|
boolean |
containsSliceName(S sliceName)
Check if the matrix contains a slice name
|
int |
getColIndexByName(C 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() |
V |
getObject(int slice,
int row,
int column) |
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(R r) |
boolean |
hasRowNames() |
boolean |
hasSliceNames() |
boolean |
isMissing(int slice,
int row,
int column)
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 has
|
void |
setColumnNames(List<C> v) |
void |
setRowNames(List<R> v) |
void |
setSliceNames(List<S> v) |
int |
slices() |
void addColumnName(C s, int index)
s
- a column nameindex
- int the column index associated with this namevoid addRowName(R s, int index)
s
- row nameindex
- void addSliceName(S s, int index)
s
- name of the sliceindex
- int columns()
boolean containsColumnName(C columnName)
colName
- boolean containsRowName(R rowName)
rowName
- boolean containsSliceName(S sliceName)
stripeName
- int getColIndexByName(C s)
s
- nameC getColName(int i)
i
- column indexV getObject(int slice, int row, int column)
int getRowIndexByName(R s)
s
- nameR getRowName(int i)
i
- row indexint getSliceIndexByName(S s)
s
- nameS getSliceName(int i)
i
- indexboolean hasColNames()
boolean hasRow(R r)
r
- row nameboolean hasRowNames()
boolean hasSliceNames()
boolean isMissing(int slice, int row, int column)
slice
- row
- column
- int numMissing()
int rows()
int slices()
Copyright © 2003–2022 UBC Michael Smith Laboratories. All rights reserved.