approximation edit page

computes a least square problem to get an approximation


sF = S2FunHarmonic.approximation(S2Grid, f)
sF = S2FunHarmonic.approximation(S2Grid, f, 'bandwidth', bandwidth, 'tol', TOL, 'maxit', MAXIT, 'weights', W)


S2Grid grid on the sphere
f function values on the grid (may be multidimensional)


bandwidth maximum degree of the spherical harmonics used to approximate the function
to tolerance for lsqm
maxIt maximum number of iterations for lsqm
weights weight w_n for the node nodes (default: Voronoi weights)