Class FFTRealFrame

All Implemented Interfaces:
ClipboardOwner, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, AppFrame, Hidable

public class FFTRealFrame extends PlotFrame
FFTRealFrame computes the FFT or real data and displays the result.
Version:
1.0
Author:
W. Christian
See Also:
  • Field Details

  • Constructor Details

    • FFTRealFrame

      public FFTRealFrame(String xlabel, String ylabel, String title)
      A DrawingFrame that displays a FFT as its drawable.
      Parameters:
      xlabel - String
      ylabel - String
      title - String
  • Method Details

    • showSin

      public void showSin()
    • showCos

      public void showCos()
    • showPower

      public void showPower()
    • setGutter

      public void setGutter()
    • setGutter

      public void setGutter(int n)
      Adds extra points to the data before performing the Fourier analysis using the FFT.
      Parameters:
      n - int
    • setXLabel

      public void setXLabel(String xlabel)
      Sets the x-label on the plot.
      Overrides:
      setXLabel in class DrawingFrame
      Parameters:
      xlabel - String
    • addMenuItems

      protected void addMenuItems()
      Adds Views menu items on the menu bar.
      Overrides:
      addMenuItems in class PlotFrame
    • setDomainType

      public void setDomainType(int type)
      Sets the units for the FFT output. Domain types are: MODE, FREQ, OMEGA
      Parameters:
      type - int
    • convertToPostView

      public void convertToPostView()
    • convertToConnectedView

      public void convertToConnectedView()
    • doFFT

      public void doFFT(double[] xNew, double[] dataNew, int gutter)
      Does an FFT of the given data array. The data array is assumed to contain complex numbers stored as successive (re,im) pairs. The given array remains unchanged.
      Parameters:
      datasetManager - double[]
      xmin - double
      xmax - double
    • setLogScale

      public void setLogScale(boolean xlog, boolean ylog)
      Sets the axes to use a logarithmetic scale.
      Overrides:
      setLogScale in class DrawingFrame