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