Package adams.data.spectrumfilter
Class LogTransform
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.filter.AbstractFilter<Spectrum>
-
- adams.data.spectrumfilter.LogTransform
-
- 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.ShallowCopySupporter<adams.data.filter.Filter>,adams.core.SizeOfHandler,adams.data.filter.Filter<Spectrum>,Serializable,Comparable
public class LogTransform extends adams.data.filter.AbstractFilter<Spectrum>
Transforms the amplitudes using log.
Valid options are:
-D (property: debug) If set to true, scheme may output additional info to the console.
-base <java.lang.String> (property: logBase) The base for the log ('e' or a positive number greater than 1). default: 10- Version:
- $Revision: 2242 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected doublem_ActualLogBasethe actual base.protected Stringm_LogBasethe base of the log.
-
Constructor Summary
Constructors Constructor Description LogTransform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.StringgetLogBase()Returns the base of the log ("e" or a positive number greater than 1).StringglobalInfo()Returns a string describing the object.StringlogBaseTipText()Returns the tip text for this property.protected SpectrumprocessData(Spectrum data)Performs the actual filtering.voidsetLogBase(String value)Sets the base of the log ("e" or a positive number greater than 1).-
Methods inherited from class adams.data.filter.AbstractFilter
checkData, cleanUp, compareTo, destroy, dontUpdateIDTipText, equals, filter, forCommandLine, getDontUpdateID, reset, setDontUpdateID, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, 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
-
-
-
-
Field Detail
-
m_LogBase
protected String m_LogBase
the base of the log.
-
m_ActualLogBase
protected double m_ActualLogBase
the actual base.
-
-
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
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.data.filter.AbstractFilter<Spectrum>
-
setLogBase
public void setLogBase(String value)
Sets the base of the log ("e" or a positive number greater than 1).- Parameters:
value- the base
-
getLogBase
public String getLogBase()
Returns the base of the log ("e" or a positive number greater than 1).- Returns:
- the base
-
logBaseTipText
public String logBaseTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
-