|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetkit.classifiers.active.graphfunctions.ScoringFunction
public abstract class ScoringFunction
| Field Summary | |
|---|---|
protected GraphMetrics |
gm
|
protected GraphCentralityLabeling |
labeler
|
protected Classification |
labels
|
| Constructor Summary | |
|---|---|
ScoringFunction()
|
|
| Method Summary | |
|---|---|
double |
bestScore()
What is the best score (first to be picked) |
boolean |
clusterBased()
Is this scoring function cluster based (does it need clustering). |
int |
compare(double d1,
double d2)
Standard comparator function. |
int |
compare(PickLabelStrategy.LabelNode n1,
PickLabelStrategy.LabelNode n2)
Standard comparator function. |
void |
initialize(GraphCentralityLabeling graphLabeler)
|
abstract double |
score(ModularityClusterer.Cluster c,
Node n)
|
abstract java.lang.String |
toString()
|
double |
update(ModularityClusterer.Cluster c,
double currentScore,
Node n,
Node[] newPicks)
Return the new score of a node given its old score and a newly labeled node. |
boolean |
updateable()
returns whether the score of a node will change if more nodes are labeled. |
double |
worstScore()
What is the best score (last to be picked) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
protected GraphCentralityLabeling labeler
protected GraphMetrics gm
protected Classification labels
| Constructor Detail |
|---|
public ScoringFunction()
| Method Detail |
|---|
public void initialize(GraphCentralityLabeling graphLabeler)
public abstract java.lang.String toString()
toString in class java.lang.Object
public abstract double score(ModularityClusterer.Cluster c,
Node n)
public double update(ModularityClusterer.Cluster c,
double currentScore,
Node n,
Node[] newPicks)
public boolean updateable()
public boolean clusterBased()
public final int compare(PickLabelStrategy.LabelNode n1,
PickLabelStrategy.LabelNode n2)
compare in interface java.util.Comparator<PickLabelStrategy.LabelNode>
public int compare(double d1,
double d2)
public double bestScore()
public double worstScore()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||