Package struct

Class FFTData

java.lang.Object
struct.FFTData

public class FFTData extends Object
The class representing Fast Fourier Transform data.
For more details on the data structure, please see https://tinyurl.com/DareFightingICE/AI.
  • Field Details

    • real

      private float[] real
      Real parts
    • realAsBytes

      private byte[] realAsBytes
      Real parts as bytes
    • imag

      private float[] imag
      Imaginary parts
    • imagAsBytes

      private byte[] imagAsBytes
      Imaginary parts as bytes
  • Method Details

    • getReal

      public float[] getReal()
      Gets real part.
      Returns:
      real part.
    • getImag

      public float[] getImag()
      Gets imaginary part.
      Returns:
      imaginary part
    • getRealAsBytes

      public byte[] getRealAsBytes()
      Byte sequence version of getReal().
      This method is recommended for Python-based AI
      Returns:
      real part as byte sequence.
    • getImagAsBytes

      public byte[] getImagAsBytes()
      Byte sequence version of getImag()
      This method is recommended for Python-based AI
      Returns:
      imaginary part as byte sequence.