Package Azigram

Class AzigramDataUnit

All Implemented Interfaces:
Comparable<PamDataUnit>, AcousticDataUnit

public class AzigramDataUnit extends FFTDataUnit
Just a dirty hack for testing. This AzigramDataUnit is just an FFTDataUnit, But override the getMagnitude() function to run the demux and Azigram routines.
Author:
brian_mil
  • Constructor Details

    • AzigramDataUnit

      public AzigramDataUnit(long timeMilliseconds, int channelBitmap, long startSample, long duration, ComplexArray fftData, int fftSlice)
  • Method Details

    • getMagnitudeData

      public double[] getMagnitudeData()
      Description copied from class: FFTDataUnit
      Return the values in decibels (spectrum level I think). Should be good to go for plotting on the spectrogram.
      Overrides:
      getMagnitudeData in class FFTDataUnit
      Returns:
      data for plotting. Should be converted to the same scale as is used by the plot axis (usually dB, but might be counts or some other data type)
    • getP

      public ComplexArray getP()
    • setP

      public void setP(ComplexArray p)
    • getVx

      public double[] getVx()
    • setVx

      public void setVx(double[] vx)
    • getVy

      public double[] getVy()
    • setVy

      public void setVy(double[] vy)
    • getF

      public double[] getF()
    • setF

      public void setF(double[] f)
    • getDirectionalAngle

      public double[] getDirectionalAngle()
    • setDirectionalAngle

      public void setDirectionalAngle(double[] mu)
    • getSpectrogramData

      public double[] getSpectrogramData()
      Overrides:
      getSpectrogramData in class FFTDataUnit
    • getSpectrogramAlpha

      public double[] getSpectrogramAlpha()
      Placeholder in case we want an Azigram with transparency linked to signal amplitude.
      Returns:
    • setDirectionalMagnitude

      public void setDirectionalMagnitude(double[] mag)
    • getDirectionalMagnitude

      public double[] getDirectionalMagnitude()