clarion.system
Class AbstractMatchCalculator
java.lang.Object
clarion.system.AbstractMatchCalculator
- Direct Known Subclasses:
- DefaultMatchCalculator, QLearningMatchCalculator
public abstract class AbstractMatchCalculator
- extends java.lang.Object
This class implements a match calculator within CLARION.
This class is abstract and therefore cannot be instantiated on its own.
Usage:
This class acts as a framework for building match calculators to use within the subsystems of CLARION (mainly the ACS).
It is used for calculating match statistics for any components within the CLARION Library that implement
InterfaceTracksMatchStatistics. Usually the subsystem itself will contain a match calculator which is used communally by
all of the components within that subsystem. However, if a component implements InterfaceHasMatchCalculator, then
that component will use its own match calculator.
Known Subclasses:
- DefaultMatchCalculator
- QLearningMatchCalculator
- Version:
- 6.0.4
- Author:
- Nick Wilson
Method Summary |
abstract boolean |
isPositive(double feedback,
double threshold)
Checks to see if an outcome was positive based on the feedback received and a specified pre-defined
threshold parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMatchCalculator
public AbstractMatchCalculator()
isPositive
public abstract boolean isPositive(double feedback,
double threshold)
- Checks to see if an outcome was positive based on the feedback received and a specified pre-defined
threshold parameter. It is up to the user to define the algorithm here that is used for determining positivity.
- Parameters:
feedback
- The feedback received.threshold
- The threshold that must be passed in order for the outcome to be considered positive.
- Returns:
- True if the outcome was positive, otherwise false.