Class FFT

  • 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.core.TechnicalInformationHandler, adams.data.filter.Filter<Spectrum>, Serializable, Comparable

    public class FFT
    extends adams.data.filter.AbstractFFT<Spectrum>
    A filter that transforms the data with Fast Fourier Transform.

    For more information see:

    Mark Hale (2009). JSci - A science API for Java.

     @misc{Hale2009,
        author = {Mark Hale},
        title = {JSci - A science API for Java},
        year = {2009},
        HTTP = {http://jsci.sourceforge.net/}
     }
     


    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -no-id-update <boolean> (property: dontUpdateID)
        If enabled, suppresses updating the ID of adams.data.id.IDHandler data containers.
        default: false
     
    -padding <ZERO> (property: paddingType)
        The padding type to use.
        default: ZERO
     
    -inverse <boolean> (property: inverseTransform)
        If true, then the inverse transform is performed.
        default: false
     
    -real <boolean> (property: real)
        If enabled, the real part of the tranformation is returned.
        default: true
     
    Version:
    $Revision: 7305 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class adams.data.filter.AbstractFilter

        adams.data.filter.AbstractFilter.FilterJob<T extends adams.data.container.DataContainer>
    • Field Summary

      • Fields inherited from class adams.data.filter.AbstractFFT

        m_InverseTransform, m_PaddingType, m_Real
      • Fields inherited from class adams.data.filter.AbstractFilter

        m_DontUpdateID
      • Fields inherited from class adams.core.option.AbstractOptionHandler

        m_OptionManager
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Constructor Summary

      Constructors 
      Constructor Description
      FFT()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected double getValue​(adams.data.container.DataPoint point)
      Returns the Y-value of the DataPoint.
      protected adams.data.container.DataPoint newDataPoint​(List<adams.data.container.DataPoint> points, int index, double y)
      Creates a new DataPoint based on the index and the new Y value.
      • Methods inherited from class adams.data.filter.AbstractFFT

        defineOptions, getInverseTransform, getPaddingType, getReal, getTechnicalInformation, globalInfo, inverseTransformTipText, paddingTypeTipText, processData, realTipText, setInverseTransform, setPaddingType, setReal
      • 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 interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel, setLoggingLevel
      • Methods inherited from interface adams.core.logging.LoggingSupporter

        getLogger, isLoggingEnabled
      • Methods inherited from interface adams.core.option.OptionHandler

        cleanUpOptions, getOptionManager, toCommandLine
    • Constructor Detail

      • FFT

        public FFT()
    • Method Detail

      • getValue

        protected double getValue​(adams.data.container.DataPoint point)
        Returns the Y-value of the DataPoint.
        Specified by:
        getValue in class adams.data.filter.AbstractFFT<Spectrum>
        Parameters:
        point - the point to get the Y-Value from
        Returns:
        the Y-value
      • newDataPoint

        protected adams.data.container.DataPoint newDataPoint​(List<adams.data.container.DataPoint> points,
                                                              int index,
                                                              double y)
        Creates a new DataPoint based on the index and the new Y value. Used for padded points.
        Specified by:
        newDataPoint in class adams.data.filter.AbstractFFT<Spectrum>
        Parameters:
        points - the original points
        index - the index of the padded point in the output data
        y - the new Y value
        Returns:
        the new DataPoint