Search in sources :

Example 1 with BiclusterModel

use of de.lmu.ifi.dbs.elki.data.model.BiclusterModel in project elki by elki-project.

the class AbstractBiclustering method defineBicluster.

/**
 * Defines a Bicluster as given by the included rows and columns.
 *
 * @param rows the rows included in the Bicluster
 * @param cols the columns included in the Bicluster
 * @return A Bicluster as given by the included rows and columns
 */
protected Cluster<BiclusterModel> defineBicluster(long[] rows, long[] cols) {
    ArrayDBIDs rowIDs = rowsBitsetToIDs(rows);
    int[] colIDs = colsBitsetToIDs(cols);
    return new Cluster<>(rowIDs, new BiclusterModel(colIDs));
}
Also used : ArrayDBIDs(de.lmu.ifi.dbs.elki.database.ids.ArrayDBIDs) Cluster(de.lmu.ifi.dbs.elki.data.Cluster) BiclusterModel(de.lmu.ifi.dbs.elki.data.model.BiclusterModel)

Example 2 with BiclusterModel

use of de.lmu.ifi.dbs.elki.data.model.BiclusterModel in project elki by elki-project.

the class AbstractBiclustering method defineBicluster.

/**
 * Defines a Bicluster as given by the included rows and columns.
 *
 * @param rows the rows included in the Bicluster
 * @param cols the columns included in the Bicluster
 * @return a Bicluster as given by the included rows and columns
 */
protected Cluster<BiclusterModel> defineBicluster(BitSet rows, BitSet cols) {
    ArrayDBIDs rowIDs = rowsBitsetToIDs(rows);
    int[] colIDs = colsBitsetToIDs(cols);
    return new Cluster<>(rowIDs, new BiclusterModel(colIDs));
}
Also used : ArrayDBIDs(de.lmu.ifi.dbs.elki.database.ids.ArrayDBIDs) Cluster(de.lmu.ifi.dbs.elki.data.Cluster) BiclusterModel(de.lmu.ifi.dbs.elki.data.model.BiclusterModel)

Aggregations

Cluster (de.lmu.ifi.dbs.elki.data.Cluster)2 BiclusterModel (de.lmu.ifi.dbs.elki.data.model.BiclusterModel)2 ArrayDBIDs (de.lmu.ifi.dbs.elki.database.ids.ArrayDBIDs)2