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
public abstract class DoubleMatrix3D<R,C,S> extends AbstractMatrix3D<R,C,S,Double>
TODO Document Me- Author:
- Xwan
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
MAX_ROWS_TO_PRINT
protected static int
MAX_SLICES_TO_PRINT
-
Fields inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrix3D
colMap, colNames, rowMap, rowNames, sliceMap, sliceNames
-
-
Constructor Summary
Constructors Constructor Description DoubleMatrix3D()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract 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()
String
toString()
abstract cern.colt.matrix.DoubleMatrix2D
viewColumn(int column)
abstract cern.colt.matrix.DoubleMatrix2D
viewRow(int slice)
abstract cern.colt.matrix.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 Detail
-
MAX_ROWS_TO_PRINT
protected static final int MAX_ROWS_TO_PRINT
- See Also:
- Constant Field Values
-
MAX_SLICES_TO_PRINT
protected static final int MAX_SLICES_TO_PRINT
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public abstract double get(int slice, int row, int column)
-
getColObj
public abstract Double[][] getColObj(int col)
-
getColumn
public abstract double[][] getColumn(int column)
-
getColumnByName
public double[][] getColumnByName(C col)
- Parameters:
s
- String- Returns:
- double[]
-
getRow
public abstract double[][] getRow(int row)
-
getRowByName
public double[][] getRowByName(R row)
- Parameters:
s
- String- Returns:
- double[]
-
getRowObj
public abstract Double[][] getRowObj(int row)
-
getSlice
public abstract double[][] getSlice(int slice)
-
getSliceByName
public double[][] getSliceByName(S slice)
-
getSliceObj
public abstract Double[][] getSliceObj(int slice)
-
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:
j
-i
-c
-
-
slices
public abstract int slices()
-
viewColumn
public abstract cern.colt.matrix.DoubleMatrix2D viewColumn(int column)
-
viewRow
public abstract cern.colt.matrix.DoubleMatrix2D viewRow(int slice)
- Parameters:
j
-- Returns:
-
viewSlice
public abstract cern.colt.matrix.DoubleMatrix2D viewSlice(int slice)
-
-