Expand description
Support functions (copy, fill, format conversions q7/q15/q31/f32, sort, barycenter, weighted sum).
Structs§
- XorShift64
- Simple deterministic zero-allocation 64-bit XorShift Pseudo-Random Number Generator.
Functions§
- barycenter_
f32 - Compute barycenter of points weighted by given weights.
- biquad_
coeffs_ f32_ to_ q15 - Quantize f32 biquad SOS coeffs (
[b0,b1,b2,a1,a2]per stage) to Q15. - biquad_
coeffs_ f32_ to_ q31 - Quantize f32 biquad SOS coeffs to Q31 (
coeff / 2^{post_shift} * 2^{31}). - copy_
f32 - copy_q7
- copy_
q15 - copy_
q31 - f32_
to_ q7 - f32_
to_ q15 - f32_
to_ q31 - fill_
f32 - fill_q7
- fill_
q15 - fill_
q31 - fir_
taps_ f32_ to_ q15 - Quantize FIR taps to Q15 with nearest-even-style rounding toward nearest integer.
- gaussian_
noise_ f32 - Fill destination slice with Gaussian (White Noise) samples of given
meanandstd_devusing the Box-Muller transform. - q7_
to_ f32 - q7_
to_ q15 - q7_
to_ q31 - q15_
to_ f32 - q15_
to_ q7 - q15_
to_ q31 - q31_
to_ f32 - q31_
to_ q7 - q31_
to_ q15 - sort_
f32 - Insertion sort for f32 (ascending or descending order).
- uniform_
noise_ f32 - Fill destination slice with uniformly distributed random noise in
[min_val, max_val]. - weighted_
sum_ f32 - Compute weighted sum of values.