iafrg

PURPOSE ^

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

SYNOPSIS ^

function [iaf,csfrg]=iafrg(f,C,facfrec,nolin)

DESCRIPTION ^

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

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


 USE: [iafrg,csfrg] = iafrg(f,C,facfrec,[aplic_no_lineal?(0/1) ciaf_no_lin? aplic_log?]);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % IAFRG calculated values ​​of the function of allocation of information
0002 % for the RG (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 % IAFRG gives an m * n array such that each row contains the values
0007 % of the function for different contrasts (with fixed f)
0008 %
0009 %
0010 % USE: [iafrg,csfrg] = iafrg(f,C,facfrec,[aplic_no_lineal?(0/1) ciaf_no_lin? aplic_log?]);
0011 %
0012 
0013 function [iaf,csfrg]=iafrg(f,C,facfrec,nolin)
0014 
0015 f=facfrec*f;
0016 
0017 f=f+0.00001*(f==0);
0018 C=C+0.0000001*(C==0);
0019 
0020 lf=length(f);
0021 lc=length(C);
0022 
0023 iaf=zeros(lf,lc);
0024 p=[0.0840 0.8345 0.6313 0.2077];
0025 
0026 if length(nolin)==1
0027    nolin=[nolin nolin];
0028 end
0029 
0030 nolini=nolin;
0031 nolin=nolini(1);
0032 
0033 if ((nolini(1)==0)&(nolini(2)==1))
0034    nolin=1;
0035 end
0036 
0037 if nolin==1
0038    for i=1:lf
0039        cu=1/(100*2537.9*sigm1d(f(i),-55.94,6.64));
0040        ace(i,:)=umbinc3(C,cu,p(1),p(2),p(3),p(4));
0041    end
0042    iaf=1./ace;
0043 else
0044    iaf=100*2537.9*sigm1d(f,-55.94,6.64);
0045    iaf=iaf'*ones(1,length(C));
0046 end
0047 csfrg=iaf(:,1)';
0048 
0049 if ((nolini(1)==0)&(nolini(2)==1))
0050    s=size(iaf);
0051    iafc=sum(iaf')';
0052    iaf=iafc*ones(1,s(2));
0053 end
0054

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