V
- the type of NumberVector handled by this Resultpublic class Bicluster<V extends FeatureVector<?,?>> extends Object implements TextWriteable, Model
Modifier and Type | Field and Description |
---|---|
private int[] |
colIDs
The ids of the rows included in the bicluster.
|
private Relation<V> |
database
The database this bicluster is defined for.
|
private ArrayDBIDs |
rowIDs
The ids of the rows included in the bicluster.
|
Constructor and Description |
---|
Bicluster(ArrayDBIDs rowIDs,
int[] colIDs,
Relation<V> database)
Defines a new bicluster for given parameters.
|
Bicluster(int[] rowIDs,
int[] colIDs,
Relation<V> database)
Deprecated.
Use DBIDs, not integers!
|
Modifier and Type | Method and Description |
---|---|
int[] |
getColumnIDs()
Provides a copy of the column IDs contributing to the bicluster.
|
Relation<V> |
getDatabase()
Getter to retrieve the database
|
DBIDs |
getDatabaseObjectGroup()
Creates a DBIDs for the row IDs included in this Bicluster.
|
Iterator<V> |
rowIterator()
Provides an iterator for the row ids.
|
int |
size()
The size of the cluster.
|
void |
sortIDs()
Sorts the row and column ids in ascending order.
|
void |
writeToText(TextWriterStream out,
String label)
Implementation of
TextWriteable interface. |
private ArrayDBIDs rowIDs
private int[] colIDs
private Relation<V extends FeatureVector<?,?>> database
public Bicluster(ArrayDBIDs rowIDs, int[] colIDs, Relation<V> database)
rowIDs
- the ids of the rows included in the biclustercolIDs
- the ids of the columns included in the biclusterdatabase
- the database this bicluster is defined for@Deprecated public Bicluster(int[] rowIDs, int[] colIDs, Relation<V> database)
rowIDs
- the ids of the rows included in the biclustercolIDs
- the ids of the columns included in the biclusterdatabase
- the database this bicluster is defined forpublic void sortIDs()
public int size()
public Iterator<V> rowIterator()
sortIDs()
is called during the lifetime of the iterator.public DBIDs getDatabaseObjectGroup()
public int[] getColumnIDs()
public void writeToText(TextWriterStream out, String label)
TextWriteable
interface.writeToText
in interface TextWriteable
out
- Output writerlabel
- Label