public abstract class AbstractMetric<E> extends Object implements Metric<E>
Constructor and Description |
---|
AbstractMetric() |
Modifier and Type | Method and Description |
---|---|
void |
finishEvaluation()
Finish the evaluation, releasing any resources allocated for it.
|
protected E |
getCurrentEvaluation()
Get the current evaluation, or
null none is in progress. |
void |
startEvaluation(E eval)
Initialize the metric to accumulate evaluations for the specified evaluation.
|
public void startEvaluation(E eval)
Metric
startEvaluation
in interface Metric<E>
eval
- The evaluation this metric is in use for.public void finishEvaluation()
Metric
finishEvaluation
in interface Metric<E>
protected E getCurrentEvaluation()
null
none is in progress.Copyright © 2013 GroupLens Research. All Rights Reserved.