No BSD License  

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

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

by

 

12 Nov 2004 (Updated )

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

y=proymenor(x,threshold,relax)
function y=proymenor(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