I'm trying to approximate a function using a set of piecewise polynomials. For example, perhaps I'd like to uniformly split the domain [-1,+1] 20 times and place Wendland RBF, Gaussian, or maybe a B-Spline in each section and then determine coefficients for the polynomials to best approximate my sample data on the domain.
Normally, to approximate scattered data with an RBF of local support you'd use a Least Squares Approximation, however, this requires you know all your data upfront and this could be quite memory intensive to store all the scattered data points in a matrix and then solve.
Is there a way to project directly onto the polynomials using Monte Carlo? I know if you are using an orthogonal basis you can directly project your sample points but I'm not quite sure how to do it if your basis functions are non-orthogonal.
Thank you