Code covered by the BSD License  

Highlights from
Discriminant Analysis Programme

image thumbnail
from Discriminant Analysis Programme by Bartolomeu Rabacal
Discrimination and Classification of data to and from groups with classical/robust estimation

psibiweight(x,c)
function psi = psibiweight(x,c)

% Computes Tukey's biweight psi function with constant c for all 
% values in the vector x.

hulp = x-2.*x.^3/(c^2)+x.^5/(c^4);
psi = hulp.*(abs(x)<c);

%-----------------------------------------------------------------------

Contact us at files@mathworks.com