Package struct
Class FFTData
java.lang.Object
struct.FFTData
The class representing Fast Fourier Transform data.
For more details on the data structure, please see https://tinyurl.com/DareFightingICE/AI.
For more details on the data structure, please see https://tinyurl.com/DareFightingICE/AI.
-
Field Summary
Modifier and TypeFieldDescriptionprivate float[]
Imaginary partsprivate byte[]
Imaginary parts as bytesprivate float[]
Real partsprivate byte[]
Real parts as bytes -
Method Summary
-
Field Details
-
real
private float[] realReal parts -
realAsBytes
private byte[] realAsBytesReal parts as bytes -
imag
private float[] imagImaginary parts -
imagAsBytes
private byte[] imagAsBytesImaginary 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 ofgetReal()
.
This method is recommended for Python-based AI- Returns:
- real part as byte sequence.
-
getImagAsBytes
public byte[] getImagAsBytes()Byte sequence version ofgetImag()
This method is recommended for Python-based AI- Returns:
- imaginary part as byte sequence.
-