Class RawFFTPlot.SimpleFFTDataBlock

Enclosing class:
RawFFTPlot<D extends PamDataUnit>

public class RawFFTPlot.SimpleFFTDataBlock extends DataBlock2D<DataUnit2D>
Data block for holding FFT Values
Author:
Jamie Macaulay
  • Constructor Details

    • SimpleFFTDataBlock

      public SimpleFFTDataBlock(String dataName, PamProcess parentProcess, int channelMap, int fftHop, int fftLength)
  • Method Details

    • getSampleRate

      public float getSampleRate()
      Overrides:
      getSampleRate in class PamDataBlock<DataUnit2D>
      Returns:
      The sample rate of the data contained in the block
    • getHopSamples

      public int getHopSamples()
      Description copied from class: DataBlock2D
      Get the advance between slices in samples. For FFT data this is the same thing as the FFT Hop
      Specified by:
      getHopSamples in class DataBlock2D<DataUnit2D>
      Returns:
      advance in samples between slices.
    • getDataWidth

      public int getDataWidth(int sequenceNumber)
      Description copied from class: DataBlock2D
      Get the length of contained data. For FFT data this will be FFTLength()/2.
      Specified by:
      getDataWidth in class DataBlock2D<DataUnit2D>
      Returns:
      length of data in each slice.
    • getMinDataValue

      public double getMinDataValue()
      Description copied from class: DataBlock2D
      Get the minimum value which can occur in the data. e.g. 0 for FFT data.
      Specified by:
      getMinDataValue in class DataBlock2D<DataUnit2D>
      Returns:
      the data's minimum value
    • getMaxDataValue

      public double getMaxDataValue()
      Description copied from class: DataBlock2D
      Get the maximum value which can occur in the data. e.g. sampleRate/2 for FFT data.
      Specified by:
      getMaxDataValue in class DataBlock2D<DataUnit2D>
      Returns:
      the data's maximum value
    • setSampleRate

      public void setSampleRate(float sampleRate)
      Parameters:
      sampleRate - the sampleRate to set
    • getFftLength

      public int getFftLength()
      Parameters:
      fftLength - the fftLength to set
    • setFftLength

      public void setFftLength(int fftLength)
      Parameters:
      fftLength - the fftLength to set
    • getFFTHop

      public int getFFTHop()
      Get Fft HOP
      Returns:
    • setFftHop

      public void setFftHop(int fftHop)
      Parameters:
      fftHop - the fftHop to set
    • getScaleInfo

      public DataTypeInfo getScaleInfo()
      Description copied from class: DataBlock2D
      Get the scale units to display on axis, etc.
      Specified by:
      getScaleInfo in class DataBlock2D<DataUnit2D>
      Returns:
      data type information.