approximation

(method of S2FunHarmonic)

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)

param,val Parameters and values that control approximation
Parameter Description
'bandwidth'

maximum degree of the spherical harmonics used to approximate the function

'to'

tolerance for lsqm

'maxIt'

maximum number of iterations for lsqm

'W'

weight w_n for the node nodes (default: voronoi weights)