Package adams.data.spectrumoutlier
Class AmplitudeRange
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.outlier.AbstractOutlierDetector<Spectrum>
-
- adams.data.spectrumoutlier.AmplitudeRange
-
- All Implemented Interfaces:
adams.core.CleanUpHandler,adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.QuickInfoSupporter,adams.core.ShallowCopySupporter<adams.data.outlier.OutlierDetector>,adams.core.SizeOfHandler,adams.data.outlier.OutlierDetector<Spectrum>,adams.data.outlier.TrainableOutlierDetector<Spectrum>,Serializable,Comparable
public class AmplitudeRange extends adams.data.outlier.AbstractOutlierDetector<Spectrum> implements adams.data.outlier.TrainableOutlierDetector<Spectrum>
For each wave number in the training data the range (min/max) is calculated.
After training, if a spectrum falls outside these ranges, it gets flagged as an outlier.
NB: Assumes the spectra (training and subsequent) have the same wave numbers.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmplitudeRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringglobalInfo()Returns a string describing the object.protected voidinitialize()Initializes the members.booleanisTrained()Returns whether the detector has been trained already and is ready to use.protected List<String>processData(Spectrum data)Performs the actual detection.voidresetDetector()Resets the detector, i.e., flags it as "not trained".voidtrainDetector(Spectrum[] data)Trains the detector with the specified data.-
Methods inherited from class adams.data.outlier.AbstractOutlierDetector
checkData, cleanUp, compareTo, destroy, detect, equals, forCommandLine, forName, getOutlierDetectors, getQuickInfo, reset, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classadams.core.option.AbstractOptionHandler
-
resetDetector
public void resetDetector()
Resets the detector, i.e., flags it as "not trained".- Specified by:
resetDetectorin interfaceadams.data.outlier.TrainableOutlierDetector<Spectrum>- See Also:
isTrained()
-
isTrained
public boolean isTrained()
Returns whether the detector has been trained already and is ready to use.- Specified by:
isTrainedin interfaceadams.data.outlier.TrainableOutlierDetector<Spectrum>- Returns:
- true if already trained
-
trainDetector
public void trainDetector(Spectrum[] data)
Trains the detector with the specified data.- Specified by:
trainDetectorin interfaceadams.data.outlier.TrainableOutlierDetector<Spectrum>
-
-