view win_mod_poly.m @ 4:72c011ed1977 tip

more elaborate example with non-stat. estimate explanation
author smusevic
date Tue, 30 Jul 2013 09:56:27 +0100
parents a4a7e3405062
children
line wrap: on
line source
function wmp = win_mod_poly(N, t, poly, w)
R = size(poly,1);
ply_val = zeros(N,R);
w_mat = repmat (w, 1, R);
for k = 1:R
  ply_val(:,k) = polyval(poly(k,:),t).';
end
wmp = sum (w_mat.*exp(ply_val),1);
end