| 86 | } |
| 87 | |
| 88 | inline float gaussian(const float max_index, const uint32_t idx, const float sigma) |
| 89 | { |
| 90 | const float fract = (idx - (max_index * 0.5f)) / (sigma * (max_index * 0.5f)); |
| 91 | return std::exp(-0.5f * (fract * fract)); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // Reference https://github.com/spurious/snd-mirror/blob/master/clm.c |
no outgoing calls
no test coverage detected