Class AbstractMatrix3D<R,C,S,V>
java.lang.Object
ubic.basecode.dataStructure.matrix.AbstractMatrix3D<R,C,S,V>
- All Implemented Interfaces:
Matrix3D<R,
C, S, V>
- Direct Known Subclasses:
DenseObject3DMatrix
,DoubleMatrix3D
TODO Document Me
- Author:
- Raymond
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addColumnName
(C s, int index) Add a column name associated with an index.final void
addRowName
(R s, int index) Add a row name associated with a row index.final void
addSliceName
(S s, int index) Add a slice nameabstract int
columns()
Get the number of columns the matrix has.final boolean
containsColumnName
(Object columnName) Check if the matrix contains a column namefinal boolean
containsRowName
(Object rowName) Check if the matrix contains a row namefinal boolean
containsSliceName
(Object sliceName) Check if the matrix contains a slice namefinal int
Get the index of a column by name.getColName
(int i) Get the column name for an index.int
Get the index of a row by name.getRowName
(int i) Get the row name for an indexint
Get a slice indexgetSliceName
(int i) Get a slice nameboolean
Check if this matrix has a valid set of column names.boolean
boolean
boolean
abstract boolean
isMissing
(int slice, int row, int col) Check if the value at a given index is missing.abstract int
Return the number of missing values in the matrix.abstract int
rows()
Get the number of rows the matrix hasvoid
setColumnNames
(List<C> v) void
setRowNames
(List<R> v) void
setSliceNames
(List<S> v) abstract int
slices()
-
Field Details
-
colMap
-
colNames
-
rowMap
-
rowNames
-
sliceMap
-
sliceNames
-
-
Constructor Details
-
AbstractMatrix3D
public AbstractMatrix3D()
-
-
Method Details
-
addColumnName
Description copied from interface:Matrix3D
Add a column name associated with an index. -
addRowName
Description copied from interface:Matrix3D
Add a row name associated with a row index. -
addSliceName
Description copied from interface:Matrix3D
Add a slice name -
columns
public abstract int columns()Description copied from interface:Matrix3D
Get the number of columns the matrix has. -
containsColumnName
Description copied from interface:Matrix3D
Check if the matrix contains a column name -
containsRowName
Description copied from interface:Matrix3D
Check if the matrix contains a row name -
containsSliceName
Description copied from interface:Matrix3D
Check if the matrix contains a slice name -
getColIndexByName
Description copied from interface:Matrix3D
Get the index of a column by name. -
getColName
Description copied from interface:Matrix3D
Get the column name for an index. -
getColNameIterator
-
getColNames
-
getRowIndexByName
Description copied from interface:Matrix3D
Get the index of a row by name. -
getRowName
Description copied from interface:Matrix3D
Get the row name for an index -
getRowNameIterator
-
getRowNames
-
getSliceIndexByName
Description copied from interface:Matrix3D
Get a slice index -
getSliceName
Description copied from interface:Matrix3D
Get a slice name -
getSliceNameIterator
-
getSliceNames
-
hasColNames
public boolean hasColNames()Description copied from interface:Matrix3D
Check if this matrix has a valid set of column names. -
hasRow
-
hasRowNames
public boolean hasRowNames() -
hasSliceNames
public boolean hasSliceNames() -
isMissing
public abstract boolean isMissing(int slice, int row, int col) Description copied from interface:Matrix3D
Check if the value at a given index is missing. -
numMissing
public abstract int numMissing()Description copied from interface:Matrix3D
Return the number of missing values in the matrix. -
rows
public abstract int rows()Description copied from interface:Matrix3D
Get the number of rows the matrix has -
setColumnNames
-
setRowNames
-
setSliceNames
-
slices
public abstract int slices()
-