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 int
m_Window
smoothing window for savitsky golay
-
Constructor Summary
Constructors Constructor Description SignalToNoiseRatio()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.int
getWindowSize()
Returns the window size for determining the 'smoothed' abundances.String
globalInfo()
protected double
Noise_bySmoothing(Spectrum data)
Return the RMSE noise value, as a distance from the smoothed spectrumprotected Spectrum
processData(Spectrum data)
void
setWindowSize(int value)
Sets the window size for determining the 'smoothed' abundances.protected double
SNR_byParabolicRegression(Spectrum data)
Return the SNR measured from quadratic approximationprotected double
SNR_bySmoothing(Spectrum data)
Return the SNR measured from smoothed spectrumString
windowSizeTipText()
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:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in 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:
processData
in 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:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
-
-