function y = noy(x) % PURPOSE: This function computes the triweigh kernel %-------------------------------------------------------------- % USAGE: y = noy(x) % where: x = (1 x n) vector of the points where you want to compute the Kernel %-------------------------------------------------------------- % OUTPUTS: y = values of the Kernel (1 x n) %-------------------------------------------------------------- % Christine Thomas-Agnan, June 2003 % Université de Toulouse I, Toulouse, France % cthomas@cict.fr y = max([(35/32)*((1 - x.^2).^3);zeros(length(x))]);