Package PamguardMVC

Class ScaleTest2D


public class ScaleTest2D extends DataBlock2D
  • Constructor Details

    • ScaleTest2D

      public ScaleTest2D(Class unitClass, String dataName, PamProcess parentProcess, int channelMap)
  • Method Details

    • main

      public static void main(String[] args)
    • 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
      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
      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
      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
      Returns:
      the data's maximum value
    • getScaleInfo

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

      public boolean isLogScale()
      Description copied from class: DataBlock2D
      Are the data on a log scale
      Overrides:
      isLogScale in class DataBlock2D
      Returns:
      true if log, default is false.