kerf=@(z) (3/4)*(1-z.^2).*(abs(z)<=1)
writing a formula in matlab
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I'm trying to write a function in matlab.
I have an example:
A gaussian kernel is
% Gaussian kernel function
%kerf=@(z)exp(-z.*z/2)/sqrt(2*pi);
How would you code an epanechnikov kernel?
How would you deal with the absolute value of t being less than or equal to 1?
Thank for your help
John
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!