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
public abstract class AbstractMatrix3D<R,C,S,V> extends Object implements Matrix3D<R,C,S,V>
TODO Document Me- Author:
- Raymond
-
-
Constructor Summary
Constructors Constructor Description AbstractMatrix3D()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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 nameabstract int
columns()
Get the number of columns the matrix has.boolean
containsColumnName(Object columnName)
Check if the matrix contains a column nameboolean
containsRowName(Object rowName)
Check if the matrix contains a row nameboolean
containsSliceName(Object sliceName)
Check if the matrix contains a slice nameint
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 indexIterator<R>
getRowNameIterator()
List<R>
getRowNames()
int
getSliceIndexByName(S s)
Get a slice indexS
getSliceName(int i)
Get a slice nameIterator<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 hasvoid
setColumnNames(List<C> v)
void
setRowNames(List<R> v)
void
setSliceNames(List<S> v)
abstract int
slices()
-
-
-
Field Detail
-
colMap
public LinkedHashMap<C,Integer> colMap
-
rowMap
public LinkedHashMap<R,Integer> rowMap
-
sliceMap
public LinkedHashMap<S,Integer> sliceMap
-
-
Method Detail
-
addColumnName
public final void addColumnName(C s, int index)
Description copied from interface:Matrix3D
Add a column name associated with an index.
-
addRowName
public final void addRowName(R s, int index)
Description copied from interface:Matrix3D
Add a row name associated with a row index.
-
addSliceName
public final void addSliceName(S s, int index)
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
public final boolean containsColumnName(Object columnName)
Description copied from interface:Matrix3D
Check if the matrix contains a column name
-
containsRowName
public final boolean containsRowName(Object rowName)
Description copied from interface:Matrix3D
Check if the matrix contains a row name
-
containsSliceName
public final boolean containsSliceName(Object sliceName)
Description copied from interface:Matrix3D
Check if the matrix contains a slice name
-
getColIndexByName
public final int getColIndexByName(Object s)
Description copied from interface:Matrix3D
Get the index of a column by name.
-
getColName
public C getColName(int i)
Description copied from interface:Matrix3D
Get the column name for an index.
-
getRowIndexByName
public int getRowIndexByName(R s)
Description copied from interface:Matrix3D
Get the index of a row by name.
-
getRowName
public R getRowName(int i)
Description copied from interface:Matrix3D
Get the row name for an index
-
getSliceIndexByName
public int getSliceIndexByName(S s)
Description copied from interface:Matrix3D
Get a slice index
-
getSliceName
public S getSliceName(int i)
Description copied from interface:Matrix3D
Get a slice name
-
hasColNames
public boolean hasColNames()
Description copied from interface:Matrix3D
Check if this matrix has a valid set of column names.
-
hasRow
public boolean hasRow(Object r)
-
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
-
-