public abstract class Heuristic
extends java.lang.Object
implements java.io.Serializable
ConfusionMatrix, must implement.| Modifier and Type | Class and Description |
|---|---|
static class |
Heuristic.Comparator<T extends Measurable>
A comparator that allows to compare
Measurables based on their heuristic values
according to a certain Heuristic. |
| Constructor and Description |
|---|
Heuristic() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
abstract double |
evaluate(@NotNull ConfusionMatrix confusionMatrix)
Calculates a heuristic values based on a
ConfusionMatrix. |
double |
evaluate(@NotNull Measurable measurable)
Calculates the heuristic value of a
Measurable. |
int |
hashCode() |
abstract boolean |
isGainMetric()
Returns, whether the heuristic is a gain metric, i.e.
|
boolean |
isLossMetric()
Returns, whether the heuristic is a loss metric, i.e.
|
abstract double |
maxValue()
Returns the maximum heuristic value that may be calculated by the heuristic.
|
abstract double |
minValue()
Returns the minimum heuristic value that may be calculated by the heuristic.
|
public double evaluate(@NotNull
@NotNull Measurable measurable)
Measurable.measurable - The Measurable to be evaluatedpublic abstract double evaluate(@NotNull
@NotNull ConfusionMatrix confusionMatrix)
ConfusionMatrix.confusionMatrix - The confusion matrix to be evaluatedpublic abstract boolean isGainMetric()
public boolean isLossMetric()
public abstract double maxValue()
public abstract double minValue()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object