Mercurial > hg > aimmat
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aim-mat/modules/usermodule/pitchstrength/analyse_aim_profiles.m Tue Aug 16 14:37:17 2011 +0100 @@ -0,0 +1,44 @@ +% function result = analyse_aim_profiles(ti_profile, fq_profile, peaks_tip, peaks_fqp, channel_center_fq) +% +% To analyse the time interval and frequency profile of the auditory image +% +% INPUT VALUES: +% +% RETURN VALUE: +% +% +% (c) 2011, University of Southampton +% Maintained by Stefan Bleeck (bleeck@gmail.com) +% download of current version is on the soundsoftware site: +% http://code.soundsoftware.ac.uk/projects/aimmat +% documentation and everything is on http://www.acousticscale.org + +function result = analyse_aim_profiles(ti_profile, fq_profile, peaks_tip, peaks_fqp, channel_center_fq ) + + +[fqp_result, fqp_fq] = analyse_frequency_profile(fq_profile, peaks_fqp); +if fqp_result==1 + [tip_result, dominant_ti] = analyse_timeinterval_profile(ti_profile, peaks_tip, fqp_result, fqp_fq); +else + [tip_result, dominant_ti] = analyse_timeinterval_profile(ti_profile, peaks_tip); +end + +% return results +if fqp_fq==0 + cfq = 0; +else + cfq = channel_center_fq(fqp_fq); +end +if dominant_ti==0 + dti = 0; +else + dti = 1/dominant_ti; +end +result.tip = tip_result; +result.dti = dti; +result.fqp = fqp_result; +result.dfq = cfq; + + + +%--------------- subfunction -----------------------