Class DiscreteTimeFourierTransform


  • public class DiscreteTimeFourierTransform
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean DEBUG  
      protected int START_THREADS  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double[] computeFrequencyRange​(double[] time)
      Compute the optimal frequency and binning range based on the acquisition range (t_max-t_min) and the minimum non-zero sampling distance.
      double[] computeMagnitudeSpectrum​(double[] t, double[] val)
      Discrete Time Fourier Transform computation.
      double[] computeMagnitudeSpectrum​(double[] t, double[] val, double[] testFrequencies)
      Discrete Time Fourier Transform
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • START_THREADS

        protected int START_THREADS
      • DEBUG

        protected boolean DEBUG
    • Constructor Detail

      • DiscreteTimeFourierTransform

        public DiscreteTimeFourierTransform()
    • Method Detail

      • computeFrequencyRange

        public double[] computeFrequencyRange​(double[] time)
        Compute the optimal frequency and binning range based on the acquisition range (t_max-t_min) and the minimum non-zero sampling distance.
        Parameters:
        time - time base vector
        Returns:
        frequency range vector
      • computeMagnitudeSpectrum

        public double[] computeMagnitudeSpectrum​(double[] t,
                                                 double[] val)
        Discrete Time Fourier Transform computation. The maximum frequency and binning is derived from the acquisition range (t_max-t_min) and the minimum non-zero sampling distance.
        Parameters:
        t - the time indices
        val - the measurement
        Returns:
        array containing magnitude spectrum
      • computeMagnitudeSpectrum

        public double[] computeMagnitudeSpectrum​(double[] t,
                                                 double[] val,
                                                 double[] testFrequencies)
        Discrete Time Fourier Transform
        Parameters:
        t - the time indices
        val - the measurement
        testFrequencies - array containing the frequencies for which the spectra is being evaluated
        Returns:
        array containing magnitude spectrum