Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.data.model
Class BiclusterWithInverted<V extends RealVector<V,Double>>

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 -
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.
 
Constructor Summary
BiclusterWithInverted(int[] rowIDs, int[] colIDs, Database<V> database)
           
 
Method Summary
 int[] getInvertedRows()
          Provides a copy of the inverted column IDs.
 void setInvertedRows(int[] 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 int[] invertedRows
The ids of inverted rows.

Constructor Detail

BiclusterWithInverted

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

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 writer
label - Label

Release 0.2 (2009-07-06_1820)