de.lmu.ifi.dbs.elki.data.model
Class BiclusterWithInverted<V extends RealVector<V,Double>>
java.lang.Object
de.lmu.ifi.dbs.elki.data.model.Bicluster<V>
de.lmu.ifi.dbs.elki.data.model.BiclusterWithInverted<V>
- Type Parameters:
V -
- All Implemented Interfaces:
- Model, TextWriteable
public class BiclusterWithInverted<V extends RealVector<V,Double>>
- extends Bicluster<V>
This code was factored out of the Bicluster class, since not all biclusters have inverted rows.
TODO: shouldn't that be inverted columns?
- Author:
- Erich Schubert
|
Field Summary |
private int[] |
invertedRows
The ids of inverted rows. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
invertedRows
private int[] invertedRows
- The ids of inverted rows.
BiclusterWithInverted
public BiclusterWithInverted(int[] rowIDs,
int[] colIDs,
Database<V> database)
- Parameters:
rowIDs - Row IDscolIDs - Col IDsdatabase - Database
setInvertedRows
public void setInvertedRows(int[] invertedRows)
- Sets the ids of the inverted rows.
- Parameters:
invertedRows - the ids of the inverted rows
getInvertedRows
public int[] getInvertedRows()
- Provides a copy of the inverted column IDs.
- Returns:
- a copy of the inverted column IDs.
sortIDs
public void sortIDs()
- Sorts the row and column ids (and - if applicable - the ids of inverted rows)
in ascending order.
- Overrides:
sortIDs in class Bicluster<V extends RealVector<V,Double>>
writeToText
public void writeToText(TextWriterStream out,
String label)
- Implementation of
TextWriteable interface.
- Specified by:
writeToText in interface TextWriteable- Overrides:
writeToText in class Bicluster<V extends RealVector<V,Double>>
- Parameters:
out - Output writerlabel - Label