public abstract class Evaluator<T>
extends java.lang.Object
Evaluator
is an abstract base class for evaluators.
Evaluation results are the arithmetic mean of the
scores calculated for each reference sample.Constructor and Description |
---|
Evaluator(EvaluationMonitor<T>... aListeners) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(ObjectStream<T> samples)
Reads all sample objects from the stream
and evaluates each sample object with
evaluateSample(Object) method. |
void |
evaluateSample(T sample)
Evaluates the given reference object.
|
public Evaluator(EvaluationMonitor<T>... aListeners)
public void evaluateSample(T sample)
processSample(Object)
note: this method will be changed to private in the future.
Implementations should override processSample(Object)
instead.
If this method is override, the implementation has to update the score
after every invocation.
sample
- the sample to be evaluatedpublic void evaluate(ObjectStream<T> samples) throws java.io.IOException
evaluateSample(Object)
method.samples
- the stream of reference which
should be evaluated.java.io.IOException
- IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved