This test shows the use of spatially-varying weights in the FIT function.
There are no variables or equations here, just a domain and some tabular
data which is FIT in different ways.
The weight declared in the FIT statement is effectively the square of the
spatial distance over which variations are smoothed.
title 'Test Variable-Weight FIT'
u = table('table.tbl')
line to (0,0) to (10,0) to (10,10) to close
contour(fit(u)) as 'unweighted'
contour(fit(u,0.2)) as 'constant weight'
contour(fit(u,0.02*(x-5)^2)) as 'side-weights'
contour(fit(u,0.05*x)) as 'right-side weight'