A very simple machine learning method.
For some input \(\qty (\hat{x}, \hat{y})\), find the closest training data point \(\qty (x_{i}, y_{i})\) and return its associated \(z_{i}\), with error \(\mid z_{i} - \hat{z}\mid\). Consider a Voronoi Diagram!
This surface is piecewise constant.