Interface Matrix3D<R,C,S,V>
- All Known Implementing Classes:
AbstractMatrix3D,DenseDouble3dMatrix,DenseObject3DMatrix,DoubleMatrix3D
public interface Matrix3D<R,C,S,V>
- Author:
- ?
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumnName(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 nameintcolumns()Get the number of columns the matrix has.booleancontainsColumnName(C columnName) Check if the matrix contains a column namebooleancontainsRowName(R rowName) Check if the matrix contains a row namebooleancontainsSliceName(S sliceName) Check if the matrix contains a slice nameintGet the index of a column by name.getColName(int i) Get the column name for an index.getObject(int slice, int row, int column) 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.booleanbooleanbooleanbooleanisMissing(int slice, int row, int column) Check if the value at a given index is missing.intReturn the number of missing values in the matrix.introws()Get the number of rows the matrix hasvoidsetColumnNames(List<C> v) voidsetRowNames(List<R> v) voidsetSliceNames(List<S> v) intslices()
-
Method Details
-
addColumnName
Add a column name associated with an index.- Parameters:
s- a column nameindex- int the column index associated with this name
-
addRowName
Add a row name associated with a row index.- Parameters:
s- row nameindex-
-
addSliceName
Add a slice name- Parameters:
s- name of the sliceindex-
-
columns
int columns()Get the number of columns the matrix has.- Returns:
- int
-
containsColumnName
Check if the matrix contains a column name- Parameters:
colName-- Returns:
- true if the matrix contains the column name
-
containsRowName
Check if the matrix contains a row name- Parameters:
rowName-- Returns:
- true if the matrix contains the row name
-
containsSliceName
Check if the matrix contains a slice name- Parameters:
stripeName-- Returns:
- true if the matrix contains the slice name
-
getColIndexByName
Get the index of a column by name.- Parameters:
s- name- Returns:
- column index
-
getColName
Get the column name for an index.- Parameters:
i- column index- Returns:
- column name
-
getColNameIterator
-
getColNames
- Returns:
- List of Object
-
getObject
-
getRowIndexByName
Get the index of a row by name.- Parameters:
s- name- Returns:
- row index
-
getRowName
Get the row name for an index- Parameters:
i- row index- Returns:
- name of the row
-
getRowNameIterator
- Returns:
- java.util.Iterator
-
getRowNames
- Returns:
- List of Object
-
getSliceIndexByName
Get a slice index- Parameters:
s- name- Returns:
- slice index
-
getSliceName
Get a slice name- Parameters:
i- index- Returns:
- slice name
-
getSliceNameIterator
-
getSliceNames
-
hasColNames
boolean hasColNames()Check if this matrix has a valid set of column names.- Returns:
- boolean
-
hasRow
- Parameters:
r- row name- Returns:
- whether the row exists
-
hasRowNames
boolean hasRowNames()- Returns:
- boolean
-
hasSliceNames
boolean hasSliceNames() -
isMissing
boolean isMissing(int slice, int row, int column) Check if the value at a given index is missing.- Parameters:
slice-row-column-- Returns:
- true if the value is missing, false otherwise.
-
numMissing
int numMissing()Return the number of missing values in the matrix.- Returns:
- number missing
-
rows
int rows()Get the number of rows the matrix has- Returns:
- int
-
setColumnNames
- Parameters:
v- List a vector of Strings.
-
setRowNames
- Parameters:
v- List a vector of Strings.
-
setSliceNames
-
slices
int slices()
-