protected static class ChengAndChurch.BiclusterCandidate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) double |
allM
Mean of the current bicluster.
|
(package private) int |
colcard
Cardinalities.
|
(package private) double[] |
colM
Means.
|
(package private) long[] |
cols
Row and column bitmasks.
|
(package private) long[] |
irow
Row and column bitmasks.
|
private ChengAndChurch.CellVisitor |
MEANVISITOR
Visitor for updating the means.
|
(package private) double |
residue
The current bicluster score (mean squared residue).
|
(package private) int |
rowcard
Cardinalities.
|
(package private) double[] |
rowM
Means.
|
(package private) long[] |
rows
Row and column bitmasks.
|
Modifier | Constructor and Description |
---|---|
protected |
BiclusterCandidate(int rows,
int cols)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeColResidue(double[][] mat,
int col)
Computes the mean column residue of the given
col . |
protected double |
computeMeanSquaredDeviation(double[][] mat)
Compute the mean square residue.
|
protected double |
computeRowResidue(double[][] mat,
int row,
boolean rowinverted)
Computes the mean row residue of the given
row . |
protected void |
invertRow(int rnum,
boolean b) |
protected void |
maskMatrix(double[][] mat,
Distribution replacement)
Updates the mask with replacement values for all data in the given rows
and columns.
|
protected void |
reset()
Resets the values for the next cluster search.
|
protected void |
selectColumn(int cnum,
boolean set)
Select or deselect a column.
|
protected void |
selectRow(int rnum,
boolean set)
Select or deselect a row.
|
protected double |
updateRowAndColumnMeans(double[][] mat,
boolean all)
Update the row means and column means.
|
protected void |
visitAll(double[][] mat,
int mode,
ChengAndChurch.CellVisitor visitor)
Visit all selected cells in the data matrix.
|
protected void |
visitColumn(double[][] mat,
int col,
int mode,
ChengAndChurch.CellVisitor visitor)
Visit a column of the matrix.
|
protected void |
visitRow(double[][] mat,
int row,
int mode,
ChengAndChurch.CellVisitor visitor)
Visit a row of the data matrix.
|
int rowcard
int colcard
double[] rowM
double[] colM
long[] rows
long[] irow
long[] cols
double allM
double residue
private final ChengAndChurch.CellVisitor MEANVISITOR
protected BiclusterCandidate(int rows, int cols)
rows
- Row dimensionality.cols
- Column dimensionality.protected void reset()
protected void visitAll(double[][] mat, int mode, ChengAndChurch.CellVisitor visitor)
mat
- Data matrixmode
- Operation modevisitor
- Visitor functionprotected void visitColumn(double[][] mat, int col, int mode, ChengAndChurch.CellVisitor visitor)
mat
- Data matrixcol
- Column to visitmode
- Operation modevisitor
- Visitor functionprotected void visitRow(double[][] mat, int row, int mode, ChengAndChurch.CellVisitor visitor)
mat
- Data matrixrow
- Row to visitvisitor
- Visitor functionprotected double updateRowAndColumnMeans(double[][] mat, boolean all)
mat
- Data matrixall
- Flag, to update allprotected double computeMeanSquaredDeviation(double[][] mat)
mat
- Data matrixprotected double computeRowResidue(double[][] mat, int row, boolean rowinverted)
row
.mat
- Data matrixrow
- The row who's residue should be computed.rowinverted
- Indicates if the row should be considered inverted.row
.protected double computeColResidue(double[][] mat, int col)
col
.col
- The column who's residue should be computed.col
um.protected void maskMatrix(double[][] mat, Distribution replacement)
mat
- Mask to update.replacement
- Distribution to sample replacement values from.protected void selectColumn(int cnum, boolean set)
cnum
- Column to selectset
- Value to setprotected void selectRow(int rnum, boolean set)
rnum
- Row to selectset
- Value to setprotected void invertRow(int rnum, boolean b)
Copyright © 2019 ELKI Development Team. License information.