No BSD License  

Highlights from
Neural Networks: A Comprehensive Foundation, 2e book Companion Software

from Neural Networks: A Comprehensive Foundation, 2e book Companion Software by Simon Haykin
Companion Software for Neural Networks: A Comprehensive Foundation, 2e book

y=proymayor(x,threshold,relax)
function y=proymayor(x,threshold,relax)
%
% Relaxed projection onto x>=threshold : P+relax(I-P)=(1-relax)P+relaxI
%
% AAR, 1/8/97

y=x.*(x>=threshold)+threshold*ones(size(x)).*(x<threshold);
y=(1-relax)*y+relax*x;

Contact us