approximation edit page

computes a least square problem to get an approximation

Syntax

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

Input

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

Options

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)