iafyb

PURPOSE ^

IAFYB calculated values ​​of the function of allocation of information

SYNOPSIS ^

function [iaf,csfyb]=iafyb(f,C,facfrec,nolin)

DESCRIPTION ^

 IAFYB calculated values ​​of the function of allocation of information
 for the YB (experim) channel in the discrete frequency domain and
 contrasts defined by row vectors (f, C)
-of lengths m and n respectivelly-

 IAFYB gives an m * n array such that each row contains the values
 of the function for different contrasts (with fixed f)

 USE: [iafyb,csfyb] = iafyb(f,C,facfrec,[aplic_no_linear?(0/1) ciaf_non_lin? aplic_log?]);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % IAFYB calculated values ​​of the function of allocation of information
0002 % for the YB (experim) channel in the discrete frequency domain and
0003 % contrasts defined by row vectors (f, C)
0004 %-of lengths m and n respectivelly-
0005 %
0006 % IAFYB gives an m * n array such that each row contains the values
0007 % of the function for different contrasts (with fixed f)
0008 %
0009 % USE: [iafyb,csfyb] = iafyb(f,C,facfrec,[aplic_no_linear?(0/1) ciaf_non_lin? aplic_log?]);
0010 %
0011 
0012 function [iaf,csfyb]=iafyb(f,C,facfrec,nolin)
0013 
0014 f=facfrec*f;
0015 
0016 f=f+0.00001*(f==0);
0017 C=C+0.0000001*(C==0);
0018 
0019 lf=length(f);
0020 lc=length(C);
0021 
0022 iaf=zeros(lf,lc);
0023 p=[0.1611 1.3354 0.3077 0.7746];
0024 if length(nolin)==1
0025    nolin=[nolin nolin];
0026 end
0027 
0028 nolini=nolin;
0029 nolin=nolini(1);
0030 
0031 if ((nolini(1)==0)&(nolini(2)==1))
0032    nolin=1;
0033 end
0034 
0035 if nolin==1
0036    for i=1:lf
0037        cu=1/(100*719.7*sigm1d(f(i),-31.72,4.13));
0038        ace(i,:)=umbinc3(C,cu,p(1),p(2),p(3),p(4));
0039    end
0040    iaf=1./ace;
0041 else
0042    iaf=100*719.7*sigm1d(f,-31.72,4.13);
0043    iaf=iaf'*ones(1,length(C));
0044 end
0045 csfyb=iaf(:,1)';
0046 
0047 if ((nolini(1)==0)&(nolini(2)==1))
0048    s=size(iaf);
0049    iafc=sum(iaf')';
0050    iaf=iafc*ones(1,s(2));
0051 end
0052

Generated on Fri 07-Mar-2014 13:29:20 by m2html © 2005