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 voidaddColumnName(C s, int index)Add a column name associated with an index.voidaddRowName(R s, int index)Add a row name associated with a row index.voidaddSliceName(S s, int index)Add a slice nameabstract intcolumns()Get the number of columns the matrix has.booleancontainsColumnName(Object columnName)Check if the matrix contains a column namebooleancontainsRowName(Object rowName)Check if the matrix contains a row namebooleancontainsSliceName(Object sliceName)Check if the matrix contains a slice nameintgetColIndexByName(Object s)Get the index of a column by name.CgetColName(int i)Get the column name for an index.Iterator<C>getColNameIterator()List<C>getColNames()intgetRowIndexByName(R s)Get the index of a row by name.RgetRowName(int i)Get the row name for an indexIterator<R>getRowNameIterator()List<R>getRowNames()intgetSliceIndexByName(S s)Get a slice indexSgetSliceName(int i)Get a slice nameIterator<S>getSliceNameIterator()List<S>getSliceNames()booleanhasColNames()Check if this matrix has a valid set of column names.booleanhasRow(Object r)booleanhasRowNames()booleanhasSliceNames()abstract booleanisMissing(int slice, int row, int col)Check if the value at a given index is missing.abstract intnumMissing()Return the number of missing values in the matrix.abstract introws()Get the number of rows the matrix hasvoidsetColumnNames(List<C> v)voidsetRowNames(List<R> v)voidsetSliceNames(List<S> v)abstract intslices()
-
-
-
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:Matrix3DAdd a column name associated with an index.
-
addRowName
public final void addRowName(R s, int index)
Description copied from interface:Matrix3DAdd a row name associated with a row index.
-
addSliceName
public final void addSliceName(S s, int index)
Description copied from interface:Matrix3DAdd a slice name
-
columns
public abstract int columns()
Description copied from interface:Matrix3DGet the number of columns the matrix has.
-
containsColumnName
public final boolean containsColumnName(Object columnName)
Description copied from interface:Matrix3DCheck if the matrix contains a column name
-
containsRowName
public final boolean containsRowName(Object rowName)
Description copied from interface:Matrix3DCheck if the matrix contains a row name
-
containsSliceName
public final boolean containsSliceName(Object sliceName)
Description copied from interface:Matrix3DCheck if the matrix contains a slice name
-
getColIndexByName
public final int getColIndexByName(Object s)
Description copied from interface:Matrix3DGet the index of a column by name.
-
getColName
public C getColName(int i)
Description copied from interface:Matrix3DGet the column name for an index.
-
getRowIndexByName
public int getRowIndexByName(R s)
Description copied from interface:Matrix3DGet the index of a row by name.
-
getRowName
public R getRowName(int i)
Description copied from interface:Matrix3DGet the row name for an index
-
getSliceIndexByName
public int getSliceIndexByName(S s)
Description copied from interface:Matrix3DGet a slice index
-
getSliceName
public S getSliceName(int i)
Description copied from interface:Matrix3DGet a slice name
-
hasColNames
public boolean hasColNames()
Description copied from interface:Matrix3DCheck 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:Matrix3DCheck if the value at a given index is missing.
-
numMissing
public abstract int numMissing()
Description copied from interface:Matrix3DReturn the number of missing values in the matrix.
-
rows
public abstract int rows()
Description copied from interface:Matrix3DGet the number of rows the matrix has
-
-