function [x,y,zTilde,distMax,dZTilde] = regsmooth2D(data, points, order ,h, bound); % Locally weighted polynomial regression % Tri-cube weight-function % % [x,y,zTilde] = smooth_localreg2D(data, points, order ,h) % % Input: % Data: [x ; y ; z] % ponits: Grid resolution on each axis % order: order of fitted polynomium % h: bandwidth 0