83
84% Competitive Soft Transfer Function
85function a = softmax_apply(n)
86nmax = max(n,[],1);
87n = bsxfun(@minus,n,nmax);
88numer = exp(n);
89denom = sum(numer,1); 
90denom(denom == 0) = 1;
91a = bsxfun(@rdivide,numer,denom);
92end
93
94% Sigmoid Symmetric Transfer Function