the file surf.m defines the function surf(n, alp, deg)
n is number of samples
alp is the parameter alpha. A nice value is alp = 0.25
deg is the degree of polynomial. Code written to work for deg<=4

code is currently written recursively, and in a non MATLAB optimized style

experiments.m, salary_experiments.m and sensor_experiments.m has code
that was used to run experiments in the paper. feel free to play with the parameters within