Class AbstractHeatmapThreshold
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.filter.heatmapthreshold.AbstractHeatmapThreshold
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,Serializable
- Direct Known Subclasses:
AbstractBufferedImageBasedHeatmapThreshold
,Manual
public abstract class AbstractHeatmapThreshold extends adams.core.option.AbstractOptionHandler
Ancestor for algorithsm that determine a threshold from a heatmap.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractHeatmapThreshold()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description double
calcThreshold(Heatmap map)
Calculates the threshold for the given heatmap.protected void
check(Heatmap map)
Checks whether the heatmap can be processed, throws anIllegalArgumentException
if not.protected abstract double
doCalcThreshold(Heatmap map)
Performs the actual calculation of the threshold.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
check
protected void check(Heatmap map)
Checks whether the heatmap can be processed, throws anIllegalArgumentException
if not.
Default implementation only checks whether a heatmap is present.- Parameters:
map
- the heatmap to check.
-
doCalcThreshold
protected abstract double doCalcThreshold(Heatmap map)
Performs the actual calculation of the threshold.- Parameters:
map
- the map to base the calculation on- Returns:
- the threshold
-
calcThreshold
public double calcThreshold(Heatmap map)
Calculates the threshold for the given heatmap.- Parameters:
map
- the map to base the calculation on- Returns:
- the threshold
-
-