function k = kerepan(xg,h) 
% KEREPAN, evaluates the EPANechnikov KERnel 
%     at a grid of x's, xg (matrix or vector),
%     for the bandwidth h
%     For use in NonParametric Regression MOVies

%    Copyright (c) J. S. Marron and D. Ruppert, 1997

k = (3 / (4 * h)) * (1 - (xg / h).^2) ;
k = k .* (k > 0) ;





