|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unibi.techfak.jpredictor.clustering.Clustering
de.unibi.techfak.jpredictor.clustering.GreedyClustering
public class GreedyClustering
This agglomerative clustering strategy builds up clusters by means of the optimal relation between any two consensus motifs.
| Field Summary | |
|---|---|
(package private) double[][] |
alignmentResults
Contains the results of all alignments in-between cluster representatives. |
| Fields inherited from class de.unibi.techfak.jpredictor.clustering.Clustering |
|---|
clusters, comm, consensus, mma, n, nucleotideVector, sma |
| Constructor Summary | |
|---|---|
GreedyClustering(ICommunicator comm,
SingleMotifAlignment sma,
MultiMotifAlignment mma)
Inits the greedy clustering. |
|
| Method Summary | |
|---|---|
(package private) void |
clusterStep()
The second step in the clustering loop. |
(package private) void |
initClustering()
Inits the clustering. |
(package private) boolean |
stopTest(double threshold,
int clusternumber)
The first step in the clustering loop. |
| Methods inherited from class de.unibi.techfak.jpredictor.clustering.Clustering |
|---|
alignMotifs, outputResults, setMotifList, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
double[][] alignmentResults
Contains the results of all alignments in-between cluster representatives.
Let the number of motifs in the motif list be n. Then the length of
the matrix would be n. Its arrays vary in length. The first, with
index zero, has length 1. The second, index 1, has length 2, and so
forth. The last array, index n-1, has length n. The matrix is
therefore build up as a triangle. If two clusters are combined to one
their respective row and column entries are deleted. Unused entries,
or invalid entries, are set to null (Double.NaN
).
| Constructor Detail |
|---|
public GreedyClustering(ICommunicator comm,
SingleMotifAlignment sma,
MultiMotifAlignment mma)
throws java.lang.NullPointerException
Clustering class.
java.lang.NullPointerException| Method Detail |
|---|
void initClustering()
Clusteringstart(double, int) to be called.
initClustering in class ClusteringClustering.start(double, int)
void clusterStep()
throws java.lang.IllegalStateException
Clustering
clusterStep in class Clusteringjava.lang.IllegalStateException - If a clustering could not be performed
due to some reason.
boolean stopTest(double threshold,
int clusternumber)
Clustering
stopTest in class Clusteringthreshold - The threshold to end the clustering. Might be
Double.NaN to indicate, that the clustering should continue
fully.clusternumber - The number of clusters wished. Give zero or -1
to have a full clustering.
true if the clustering has to stop, false
otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||