Interface NeighborEvaluator
-
- All Known Implementing Classes:
ClassifyingNeighborEvaluator
,MedoidEvaluator
,PairwiseEvaluator
,RandomEvaluator
,RankingNeighborEvaluator
public interface NeighborEvaluator
Scores the value of changing the currentClustering
to the modifiedClustering
specified in aNeighbor
object. A common implementation of this interface uses aClassifier
to assign a score to aNeighbor
.- Since:
- 1.0
- Version:
- 1.0
- Author:
- "Aron Culotta"
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
evaluate(Neighbor neighbor)
double[]
evaluate(Neighbor[] neighbors)
void
reset()
Reset the state of the evaluator.
-
-
-
Method Detail
-
evaluate
double evaluate(Neighbor neighbor)
- Parameters:
neighbor
-- Returns:
- A higher score indicates that the modified Clustering is preferred.
-
evaluate
double[] evaluate(Neighbor[] neighbors)
- Parameters:
neighbors
-- Returns:
- One score per neighbor. A higher score indicates that the modified Clustering is preferred.
-
reset
void reset()
Reset the state of the evaluator.
-
-