utils
library
Functions
-
getMagnitudes(List<int> fft)
→ List<int>
-
Computes the magnitudes from the FFT (Fast Fourier Transform) data.
-
hypotenuse(num x, num y)
→ num
-
Calculates the hypotenuse of a right-angled triangle given the lengths of the other two sides.
-
int16(int value)
→ int
-
Converts a value to a 16-bit signed integer.
-
int32(int value)
→ int
-
Converts a value to a 32-bit signed integer.
-
int8(int value)
→ int
-
Converts a value to an 8-bit signed integer.
-
scale(num value, num min, num max, num newMin, num newMax)
→ double
-
Scales a value from one range to another.
-
uint8(int value)
→ int
-
Converts a value to an 8-bit unsigned integer.