Class BulkExpressionDataDoubleMatrix
java.lang.Object
ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix<Double>
ubic.gemma.core.datastructure.matrix.AbstractBulkExpressionDataMatrix<Double>
ubic.gemma.core.datastructure.matrix.BulkExpressionDataDoubleMatrix
- All Implemented Interfaces:
BulkExpressionDataMatrix<Double>,BulkExpressionDataPrimitiveDoubleMatrix,ExpressionDataMatrix<Double>,ExpressionDataPrimitiveDoubleMatrix
public class BulkExpressionDataDoubleMatrix
extends AbstractBulkExpressionDataMatrix<Double>
implements BulkExpressionDataPrimitiveDoubleMatrix
-
Constructor Summary
ConstructorsConstructorDescriptionBulkExpressionDataDoubleMatrix(List<? extends BulkExpressionDataVector> vectors) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringformat(int i, int j) Format a matrix entry at a particular row/column.get(int row, int column) Access a single value of the matrix by row and column.doublegetAsDouble(int row, int column) Retrieve the value at the given row and column without boxing.Double[]getColumn(int column) Access a single column of the matrix.double[]getColumnAsDoubles(int column) Retrieve the given column without boxing.double[]getColumnAsDoubles(BioAssay bioAssay) Retrieve the given column without boxing.Double[][]Access the entire matrix.double[][]Obtain the raw matrix as a double array.Double[]getRow(int index) Access a single row of the matrix, by index.double[]getRowAsDoubles(int index) Retrieve a row without boxing.double[]getRowAsDoubles(CompositeSequence designElement) Retrieve the row for the given design element without boxing.booleansliceRows(List<CompositeSequence> designElements) Methods inherited from class ubic.gemma.core.datastructure.matrix.AbstractBulkExpressionDataMatrix
columns, get, getBioAssayDimension, getBioAssayForColumn, getBioMaterialForColumn, getColumn, getColumnIndex, getColumnIndex, getColumnLabel, getDesignElementForRow, getDesignElements, getExpressionExperiment, getQuantitationType, getRow, getRowElement, getRowElements, getRowIndex, getRowIndices, getRowLabel, rowsMethods inherited from class ubic.gemma.core.datastructure.matrix.AbstractExpressionDataMatrix
format, format, formatRepresentation, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ubic.gemma.core.datastructure.matrix.BulkExpressionDataMatrix
get, getBioAssayDimension, getBioAssayForColumn, getBioMaterialForColumn, getColumn, getColumnIndex, getColumnIndexMethods inherited from interface ubic.gemma.core.datastructure.matrix.ExpressionDataMatrix
columns, getDesignElementForRow, getDesignElements, getExpressionExperiment, getQuantitationType, getRow, getRowElement, getRowElements, getRowIndex, getRowIndices, rows
-
Constructor Details
-
BulkExpressionDataDoubleMatrix
-
-
Method Details
-
hasMissingValues
public boolean hasMissingValues()- Specified by:
hasMissingValuesin interfaceBulkExpressionDataMatrix<Double>- Returns:
- true if any values are null or NaN (for doubles and floats); any other value that is considered missing.
-
getColumn
Description copied from interface:ExpressionDataMatrixAccess a single column of the matrix.- Specified by:
getColumnin interfaceExpressionDataMatrix<Double>- Parameters:
column- index- Returns:
- T[]
-
getColumnAsDoubles
public double[] getColumnAsDoubles(int column) Description copied from interface:ExpressionDataPrimitiveDoubleMatrixRetrieve the given column without boxing.- Specified by:
getColumnAsDoublesin interfaceExpressionDataPrimitiveDoubleMatrix- See Also:
-
getColumnAsDoubles
Description copied from interface:BulkExpressionDataPrimitiveDoubleMatrixRetrieve the given column without boxing.- Specified by:
getColumnAsDoublesin interfaceBulkExpressionDataPrimitiveDoubleMatrix- See Also:
-
getRow
Description copied from interface:ExpressionDataMatrixAccess a single row of the matrix, by index. A complete row is returned.- Specified by:
getRowin interfaceExpressionDataMatrix<Double>- Parameters:
index- i- Returns:
- t[]
-
sliceRows
- Specified by:
sliceRowsin interfaceExpressionDataMatrix<Double>
-
getRowAsDoubles
public double[] getRowAsDoubles(int index) Description copied from interface:ExpressionDataPrimitiveDoubleMatrixRetrieve a row without boxing.- Specified by:
getRowAsDoublesin interfaceExpressionDataPrimitiveDoubleMatrix- See Also:
-
getRowAsDoubles
Description copied from interface:ExpressionDataPrimitiveDoubleMatrixRetrieve the row for the given design element without boxing.- Specified by:
getRowAsDoublesin interfaceExpressionDataPrimitiveDoubleMatrix- See Also:
-
get
Description copied from interface:ExpressionDataMatrixAccess a single value of the matrix by row and column.- Specified by:
getin interfaceExpressionDataMatrix<Double>
-
getAsDouble
public double getAsDouble(int row, int column) Description copied from interface:ExpressionDataPrimitiveDoubleMatrixRetrieve the value at the given row and column without boxing.- Specified by:
getAsDoublein interfaceExpressionDataPrimitiveDoubleMatrix- See Also:
-
getRawMatrix
Description copied from interface:BulkExpressionDataMatrixAccess the entire matrix.- Specified by:
getRawMatrixin interfaceBulkExpressionDataMatrix<Double>- Returns:
- T[][]
-
getRawMatrixAsDoubles
public double[][] getRawMatrixAsDoubles()Description copied from interface:BulkExpressionDataPrimitiveDoubleMatrixObtain the raw matrix as a double array.- Specified by:
getRawMatrixAsDoublesin interfaceBulkExpressionDataPrimitiveDoubleMatrix- See Also:
-
format
Description copied from class:AbstractExpressionDataMatrixFormat a matrix entry at a particular row/column.- Specified by:
formatin classAbstractExpressionDataMatrix<Double>
-