function [zTilde] = f(x,y,data, order ,h); % Locally weighted polynomial regression % Tri-cube weight-function % Stig B. Mortensen, 2006 % % zTilde = f(x,y,data, order ,h) % % Input: % Data: data(i, [x y z]) % x,y: vectors of coordinates for evaluation % order: order of fitted polynomium % h: bandwidth 0