Mercurial > hg > aimc
view branches/carfac_cpp/src/unit_conversion.cpp @ 705:be2b68ced23d
Make the C++ SAI match the Matlab implementation.
- Fix syntax error which caused a linear window to be used instead of the correct sine window.
- Correct off-by-one indexing errors to compensate for 1-based indexing in Matlab.
- Enable test to verify that the C++ output matches Matlab with high precision.
author | ronw@google.com |
---|---|
date | Tue, 16 Jul 2013 19:56:16 +0000 |
parents | d59c0d65624b |
children |
line wrap: on
line source
#include "unit_conversion.h" float ERB_Hz(float cf_hz, float erb_break_freq, float erb_q){ return (erb_break_freq + cf_hz) / erb_q; }