Mercurial > hg > aimmat
annotate aim-mat/modules/usermodule/pitchstrength/analyse_aim_profiles.m @ 4:537f939baef0 tip
various bug fixes and changed copyright message
author | Stefan Bleeck <bleeck@gmail.com> |
---|---|
date | Tue, 16 Aug 2011 14:37:17 +0100 |
parents | |
children |
rev | line source |
---|---|
bleeck@4 | 1 % function result = analyse_aim_profiles(ti_profile, fq_profile, peaks_tip, peaks_fqp, channel_center_fq) |
bleeck@4 | 2 % |
bleeck@4 | 3 % To analyse the time interval and frequency profile of the auditory image |
bleeck@4 | 4 % |
bleeck@4 | 5 % INPUT VALUES: |
bleeck@4 | 6 % |
bleeck@4 | 7 % RETURN VALUE: |
bleeck@4 | 8 % |
bleeck@4 | 9 % |
bleeck@4 | 10 % (c) 2011, University of Southampton |
bleeck@4 | 11 % Maintained by Stefan Bleeck (bleeck@gmail.com) |
bleeck@4 | 12 % download of current version is on the soundsoftware site: |
bleeck@4 | 13 % http://code.soundsoftware.ac.uk/projects/aimmat |
bleeck@4 | 14 % documentation and everything is on http://www.acousticscale.org |
bleeck@4 | 15 |
bleeck@4 | 16 function result = analyse_aim_profiles(ti_profile, fq_profile, peaks_tip, peaks_fqp, channel_center_fq ) |
bleeck@4 | 17 |
bleeck@4 | 18 |
bleeck@4 | 19 [fqp_result, fqp_fq] = analyse_frequency_profile(fq_profile, peaks_fqp); |
bleeck@4 | 20 if fqp_result==1 |
bleeck@4 | 21 [tip_result, dominant_ti] = analyse_timeinterval_profile(ti_profile, peaks_tip, fqp_result, fqp_fq); |
bleeck@4 | 22 else |
bleeck@4 | 23 [tip_result, dominant_ti] = analyse_timeinterval_profile(ti_profile, peaks_tip); |
bleeck@4 | 24 end |
bleeck@4 | 25 |
bleeck@4 | 26 % return results |
bleeck@4 | 27 if fqp_fq==0 |
bleeck@4 | 28 cfq = 0; |
bleeck@4 | 29 else |
bleeck@4 | 30 cfq = channel_center_fq(fqp_fq); |
bleeck@4 | 31 end |
bleeck@4 | 32 if dominant_ti==0 |
bleeck@4 | 33 dti = 0; |
bleeck@4 | 34 else |
bleeck@4 | 35 dti = 1/dominant_ti; |
bleeck@4 | 36 end |
bleeck@4 | 37 result.tip = tip_result; |
bleeck@4 | 38 result.dti = dti; |
bleeck@4 | 39 result.fqp = fqp_result; |
bleeck@4 | 40 result.dfq = cfq; |
bleeck@4 | 41 |
bleeck@4 | 42 |
bleeck@4 | 43 |
bleeck@4 | 44 %--------------- subfunction ----------------------- |