Class DoubleMatrix3D<R,C,S>
java.lang.Object
ubic.basecode.dataStructure.matrix.AbstractMatrix3D<R,C,S,Double>
ubic.basecode.dataStructure.matrix.DoubleMatrix3D<R,C,S>
- Type Parameters:
R
- Row label typeC
- Column label typeS
- Slice label type
- Direct Known Subclasses:
DenseDouble3dMatrix
TODO Document Me
- Author:
- Xwan
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final int
Fields inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrix3D
colMap, colNames, rowMap, rowNames, sliceMap, sliceNames
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract double
get
(int slice, int row, int column) abstract Double[][]
getColObj
(int col) abstract double[][]
getColumn
(int column) double[][]
getColumnByName
(C col) abstract double[][]
getRow
(int row) double[][]
getRowByName
(R row) abstract Double[][]
getRowObj
(int row) abstract double[][]
getSlice
(int slice) double[][]
getSliceByName
(S slice) abstract Double[][]
getSliceObj
(int slice) abstract boolean
isMissing
(int slice, int row, int col) Check if the value at a given index is missing.abstract int
rows()
Get the number of rows the matrix hasabstract void
set
(int x, int y, int z, double value) abstract void
setQuick
(int slice, int row, int column, double c) abstract int
slices()
toString()
abstract DoubleMatrix2D
viewColumn
(int column) abstract DoubleMatrix2D
viewRow
(int slice) abstract DoubleMatrix2D
viewSlice
(int slice) Methods inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrix3D
addColumnName, addRowName, addSliceName, columns, containsColumnName, containsRowName, containsSliceName, getColIndexByName, getColName, getColNameIterator, getColNames, getRowIndexByName, getRowName, getRowNameIterator, getRowNames, getSliceIndexByName, getSliceName, getSliceNameIterator, getSliceNames, hasColNames, hasRow, hasRowNames, hasSliceNames, numMissing, setColumnNames, setRowNames, setSliceNames
-
Field Details
-
MAX_ROWS_TO_PRINT
protected static final int MAX_ROWS_TO_PRINT- See Also:
-
MAX_SLICES_TO_PRINT
protected static final int MAX_SLICES_TO_PRINT- See Also:
-
-
Constructor Details
-
DoubleMatrix3D
public DoubleMatrix3D()
-
-
Method Details
-
get
public abstract double get(int slice, int row, int column) -
getColObj
-
getColumn
public abstract double[][] getColumn(int column) -
getColumnByName
- Parameters:
s
- String- Returns:
- double[]
-
getRow
public abstract double[][] getRow(int row) -
getRowByName
- Parameters:
s
- String- Returns:
- double[]
-
getRowObj
-
getSlice
public abstract double[][] getSlice(int slice) -
getSliceByName
-
getSliceObj
-
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. -
rows
public abstract int rows()Description copied from interface:Matrix3D
Get the number of rows the matrix has -
set
public abstract void set(int x, int y, int z, double value) -
setQuick
public abstract void setQuick(int slice, int row, int column, double c) - Parameters:
c
-j
-i
-
-
slices
public abstract int slices() -
toString
-
viewColumn
-
viewRow
- Parameters:
j
-- Returns:
-
viewSlice
-