Class RatioClickTrainAlgorithm
java.lang.Object
clickTrainDetector.clickTrainAlgorithms.classificationRatio.RatioClickTrainAlgorithm
- All Implemented Interfaces:
ClickTrainAlgorithm
- Direct Known Subclasses:
RatioAlgorithm
Click train algorithm which is very simple. It looks at the ratio of unclassified clicks to classified
clicks. If the ratio reaches a certain threshold then a all classified clicks within the time window are
added to a click train.
The ratio algorithm is not particularly sophisticated, however, it is useful for finding areas in the data which might have high numbers of true positive detections whilst ignoring sections of data that have high numbers of false positives
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the class which handles GUI components for the click train detector algorithmGet logging class for click algorithm specific information.getName()
The name of the algorithmvoid
newDataUnit
(PamDataUnit<?, ?> dataUnit) Adds a data unit to the click train detector algorithmvoid
Send update flag to the algorithm
-
Constructor Details
-
RatioClickTrainAlgorithm
-
-
Method Details
-
getName
Description copied from interface:ClickTrainAlgorithm
The name of the algorithm- Specified by:
getName
in interfaceClickTrainAlgorithm
- Returns:
- the name of the algorithm
-
newDataUnit
Description copied from interface:ClickTrainAlgorithm
Adds a data unit to the click train detector algorithm- Specified by:
newDataUnit
in interfaceClickTrainAlgorithm
- Parameters:
dataUnit
- - data unit to be considered for click train detection.
-
getClickTrainGraphics
Description copied from interface:ClickTrainAlgorithm
Get the class which handles GUI components for the click train detector algorithm- Specified by:
getClickTrainGraphics
in interfaceClickTrainAlgorithm
- Returns:
- the click train graphics.
-
update
Description copied from interface:ClickTrainAlgorithm
Send update flag to the algorithm- Specified by:
update
in interfaceClickTrainAlgorithm
- Parameters:
data
- - an object to add to update
-
getCTAlgorithmInfoLogging
Description copied from interface:ClickTrainAlgorithm
Get logging class for click algorithm specific information.- Specified by:
getCTAlgorithmInfoLogging
in interfaceClickTrainAlgorithm
- Returns:
- the ct algorithm logging.
-