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 voidaddColumnName(C s, int index) Add a column name associated with an index.final voidaddRowName(R s, int index) Add a row name associated with a row index.final voidaddSliceName(S s, int index) Add a slice nameabstract intcolumns()Get the number of columns the matrix has.final booleancontainsColumnName(Object columnName) Check if the matrix contains a column namefinal booleancontainsRowName(Object rowName) Check if the matrix contains a row namefinal booleancontainsSliceName(Object sliceName) Check if the matrix contains a slice namefinal intGet the index of a column by name.getColName(int i) Get the column name for an index.intGet the index of a row by name.getRowName(int i) Get the row name for an indexintGet a slice indexgetSliceName(int i) Get a slice namebooleanCheck if this matrix has a valid set of column names.booleanbooleanbooleanabstract booleanisMissing(int slice, int row, int col) Check if the value at a given index is missing.abstract intReturn 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 Details
-
colMap
-
colNames
-
rowMap
-
rowNames
-
sliceMap
-
sliceNames
-
-
Constructor Details
-
AbstractMatrix3D
public AbstractMatrix3D()
-
-
Method Details
-
addColumnName
Description copied from interface:Matrix3DAdd a column name associated with an index. -
addRowName
Description copied from interface:Matrix3DAdd a row name associated with a row index. -
addSliceName
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
Description copied from interface:Matrix3DCheck if the matrix contains a column name -
containsRowName
Description copied from interface:Matrix3DCheck if the matrix contains a row name -
containsSliceName
Description copied from interface:Matrix3DCheck if the matrix contains a slice name -
getColIndexByName
Description copied from interface:Matrix3DGet the index of a column by name. -
getColName
Description copied from interface:Matrix3DGet the column name for an index. -
getColNameIterator
-
getColNames
-
getRowIndexByName
Description copied from interface:Matrix3DGet the index of a row by name. -
getRowName
Description copied from interface:Matrix3DGet the row name for an index -
getRowNameIterator
-
getRowNames
-
getSliceIndexByName
Description copied from interface:Matrix3DGet a slice index -
getSliceName
Description copied from interface:Matrix3DGet a slice name -
getSliceNameIterator
-
getSliceNames
-
hasColNames
public boolean hasColNames()Description copied from interface:Matrix3DCheck 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: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 -
setColumnNames
-
setRowNames
-
setSliceNames
-
slices
public abstract int slices()
-