Mercurial > hg > aimmat
annotate aim-mat/tools/@frame/erbdensity.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 | 74dedb26614d |
children |
rev | line source |
---|---|
tomwalters@0 | 1 % method of class @frame |
tomwalters@0 | 2 % |
tomwalters@0 | 3 % INPUT VALUES: |
tomwalters@0 | 4 % |
tomwalters@0 | 5 % RETURN VALUE: |
tomwalters@0 | 6 % |
tomwalters@0 | 7 % |
tomwalters@0 | 8 % (c) 2003, University of Cambridge, Medical Research Council |
tomwalters@0 | 9 % Stefan Bleeck (stefan@bleeck.de) |
tomwalters@0 | 10 % http://www.mrc-cbu.cam.ac.uk/cnbh/aimmanual |
tomwalters@0 | 11 % $Date: 2003/02/18 18:37:20 $ |
tomwalters@0 | 12 % $Revision: 1.1 $ |
tomwalters@0 | 13 |
tomwalters@0 | 14 |
tomwalters@0 | 15 function erb_density=erbdensity(fr) |
tomwalters@0 | 16 cfs=getcf(fr); |
tomwalters@0 | 17 nr_chan=getnrchannels(fr); |
tomwalters@0 | 18 erb1=21.4*log10(4.73e-3*cfs(1)+1); % from Glasberg,Moore 1990 |
tomwalters@0 | 19 erb2=21.4*log10(4.73e-3*cfs(nr_chan)+1); |
tomwalters@0 | 20 nr_erbs=erb2-erb1; |
tomwalters@0 | 21 erb_density=nr_chan/nr_erbs; |