Package adams.data.sampledata
Class SignalToNoiseRatio
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.report.AbstractReportFilter<Spectrum>
-
- adams.data.sampledata.SignalToNoiseRatio
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.ShallowCopySupporter<adams.data.report.AbstractReportFilter>,adams.core.SizeOfHandler,Serializable,Comparable
public class SignalToNoiseRatio extends adams.data.report.AbstractReportFilter<Spectrum>
- Author:
- dale
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_Windowsmoothing window for savitsky golay
-
Constructor Summary
Constructors Constructor Description SignalToNoiseRatio()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.intgetWindowSize()Returns the window size for determining the 'smoothed' abundances.StringglobalInfo()protected doubleNoise_bySmoothing(Spectrum data)Return the RMSE noise value, as a distance from the smoothed spectrumprotected SpectrumprocessData(Spectrum data)voidsetWindowSize(int value)Sets the window size for determining the 'smoothed' abundances.protected doubleSNR_byParabolicRegression(Spectrum data)Return the SNR measured from quadratic approximationprotected doubleSNR_bySmoothing(Spectrum data)Return the SNR measured from smoothed spectrumStringwindowSizeTipText()Returns the tip text for this property.-
Methods inherited from class adams.data.report.AbstractReportFilter
checkData, cleanUp, compareTo, equals, filter, forCommandLine, forName, getFilters, reset, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.core.option.AbstractOptionHandler
-
setWindowSize
public void setWindowSize(int value)
Sets the window size for determining the 'smoothed' abundances.- Parameters:
value- the window size
-
getWindowSize
public int getWindowSize()
Returns the window size for determining the 'smoothed' abundances.- Returns:
- the window size
-
windowSizeTipText
public String windowSizeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
processData
protected Spectrum processData(Spectrum data)
- Specified by:
processDatain classadams.data.report.AbstractReportFilter<Spectrum>
-
Noise_bySmoothing
protected double Noise_bySmoothing(Spectrum data)
Return the RMSE noise value, as a distance from the smoothed spectrum- Parameters:
data- spectrum- Returns:
- RMSE noise
-
SNR_bySmoothing
protected double SNR_bySmoothing(Spectrum data)
Return the SNR measured from smoothed spectrum- Parameters:
data- spectrum- Returns:
- SNR
-
SNR_byParabolicRegression
protected double SNR_byParabolicRegression(Spectrum data)
Return the SNR measured from quadratic approximation- Parameters:
data- spectrum- Returns:
- SNR
-
globalInfo
public String globalInfo()
- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler
-
-