de.lmu.ifi.dbs.elki.data.model
Class BiclusterWithInverted<V extends FeatureVector<V,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.data.model.Bicluster<V>
      extended by de.lmu.ifi.dbs.elki.data.model.BiclusterWithInverted<V>
Type Parameters:
V - Vector type
All Implemented Interfaces:
Model, TextWriteable

public class BiclusterWithInverted<V extends FeatureVector<V,?>>
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?


Field Summary
private  ArrayModifiableDBIDs invertedRows
          The ids of inverted rows.
 
Constructor Summary
BiclusterWithInverted(ArrayDBIDs rowIDs, int[] colIDs, Relation<V> database)
           
BiclusterWithInverted(int[] rowIDs, int[] colIDs, Relation<V> database)
          Deprecated. Use DBIDs, not integer indexes!
 
Method Summary
 DBIDs getInvertedRows()
          Provides a copy of the inverted column IDs.
 void setInvertedRows(DBIDs invertedRows)
          Sets the ids of the inverted rows.
 void sortIDs()
          Sorts the row and column ids (and - if applicable - the ids of inverted rows) in ascending order.
 void writeToText(TextWriterStream out, String label)
          Implementation of TextWriteable interface.
 
Methods inherited from class de.lmu.ifi.dbs.elki.data.model.Bicluster
getColumnIDs, getDatabase, getDatabaseObjectGroup, rowIterator, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

invertedRows

private ArrayModifiableDBIDs invertedRows
The ids of inverted rows.

Constructor Detail

BiclusterWithInverted

public BiclusterWithInverted(ArrayDBIDs rowIDs,
                             int[] colIDs,
                             Relation<V> database)
Parameters:
rowIDs - Row IDs
colIDs - Col IDs
database - Database

BiclusterWithInverted

@Deprecated
public BiclusterWithInverted(int[] rowIDs,
                                        int[] colIDs,
                                        Relation<V> database)
Deprecated. Use DBIDs, not integer indexes!

Parameters:
rowIDs - Row IDs
colIDs - Col IDs
database - Database
Method Detail

setInvertedRows

public void setInvertedRows(DBIDs invertedRows)
Sets the ids of the inverted rows.

Parameters:
invertedRows - the ids of the inverted rows

getInvertedRows

public DBIDs 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 FeatureVector<V,?>>

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 FeatureVector<V,?>>
Parameters:
out - Output writer
label - Label

Release 0.4.0 (2011-09-20_1324)