Package adams.data.spectrumfilter
Class Scale
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.filter.AbstractFilter<Spectrum>
-
- adams.data.spectrumfilter.Scale
-
- 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 Scale extends adams.data.filter.AbstractFilter<Spectrum>
Scales the amplitudes to a given maximum.
Valid options are:
-D (property: debug) If set to true, scheme may output additional info to the console.-min <double> (property: minAmplitude) The minimum amplitude to scale to. default: 0.0-max <double> (property: maxAmplitude) The maximum amplitude to scale to. default: 100.0- 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_MaxAmplitudethe maximum amplitude to scale to.protected doublem_MinAmplitudethe minimum amplitude to scale to.
-
Constructor Summary
Constructors Constructor Description Scale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.doublegetMaxAmplitude()Returns the maximum amplitude to scale to.doublegetMinAmplitude()Returns the minimum amplitude to scale to.StringglobalInfo()Returns a string describing the object.StringmaxAmplitudeTipText()Returns the tip text for this property.StringminAmplitudeTipText()Returns the tip text for this property.protected SpectrumprocessData(Spectrum data)Performs the actual filtering.voidsetMaxAmplitude(double value)Sets the maximum amplitude to scale to.voidsetMinAmplitude(double value)Sets the minimum amplitude to scale to.-
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
-
-
-
-
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>
-
setMinAmplitude
public void setMinAmplitude(double value)
Sets the minimum amplitude to scale to.- Parameters:
value- the maximum
-
getMinAmplitude
public double getMinAmplitude()
Returns the minimum amplitude to scale to.- Returns:
- the minimum
-
minAmplitudeTipText
public String minAmplitudeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setMaxAmplitude
public void setMaxAmplitude(double value)
Sets the maximum amplitude to scale to.- Parameters:
value- the maximum
-
getMaxAmplitude
public double getMaxAmplitude()
Returns the maximum amplitude to scale to.- Returns:
- the maximum
-
maxAmplitudeTipText
public String maxAmplitudeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
-