annotate branches/carfac_cpp/src/unit_conversion.cpp @ 668:933cf18d9a59

Fourth revision of Alex Brandmeyer's C++ implementation. Fixed more style issues, changed AGC structures to vectors, replaced FloatArray2d with vector<FloatArray>, implemented first tests using GTest to verify coefficients and monaural output against Matlab values (stored in aimc/carfac/test_data/). To run tests, change the path stored in carfac_test.h in TEST_SRC_DIR. Added CARFAC_GenerateTestData to the Matlab branch, fixed stage indexing in CARFAC_Cross_Couple.m to reflect changes in AGCCoeffs and AGCState structs.
author alexbrandmeyer
date Wed, 22 May 2013 21:30:02 +0000
parents d59c0d65624b
children
rev   line source
Ulf@587 1 #include "unit_conversion.h"
Ulf@587 2
Ulf@587 3 float ERB_Hz(float cf_hz, float erb_break_freq, float erb_q){
Ulf@587 4 return (erb_break_freq + cf_hz) / erb_q;
Ulf@587 5 }