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 TypeMethodDescriptionvoid
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 nameint
columns()
Get the number of columns the matrix has.boolean
containsColumnName
(C columnName) Check if the matrix contains a column nameboolean
containsRowName
(R rowName) Check if the matrix contains a row nameboolean
containsSliceName
(S sliceName) Check if the matrix contains a slice nameint
Get the index of a column by name.getColName
(int i) Get the column name for an index.getObject
(int slice, int row, int column) 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
boolean
isMissing
(int slice, int row, int column) Check if the value at a given index is missing.int
Return the number of missing values in the matrix.int
rows()
Get the number of rows the matrix hasvoid
setColumnNames
(List<C> v) void
setRowNames
(List<R> v) void
setSliceNames
(List<S> v) int
slices()
-
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()
-