// Modified Bessel function of order 0 for complex inputs.
std::complex<float> I0(std::complex<float> x) {
std::complex<float> y = x / 3.75f;
y *= y; return1.0f + y * (3.5156229f +
y * (3.0899424f +
y * (1.2067492f +
y * (0.2659732f +
y * (0.360768e-1f + y * 0.45813e-2f)))));
}
} // namespace
void WindowGenerator::Hanning(int length, float* window) {
RTC_CHECK_GT(length, 1);
RTC_CHECK(window != nullptr); for (int i = 0; i < length; ++i) {
window[i] = 0.5f * (1 - cosf(2 * std::numbers::pi_v<float> * i / (length - 1)));
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.