fmesher_spherical_bsplines: Rotationally invariant spherical B-splines

View source: R/RcppExports.R

fmesher_spherical_bsplines1R Documentation

Rotationally invariant spherical B-splines

Description

Compute rotationally invariant spherical B-splines on the unit sphere

Usage

fmesher_spherical_bsplines1(loc, n, degree, uniform)

fmesher_spherical_bsplines(loc, n, degree, uniform)

Arguments

loc

numeric vector/matrix; coordinates of points to locate in the mesh, only the z-coordinates are used (sin(latitude))

n

The number of basis functions

degree

The polynomial basis degree

uniform

logical; If TRUE, the knots are spaced uniformly by latitude, if FALSE, the knots are spaced uniformly by sin(latitude)

Value

A matrix of evaluated b-spline basis functions

Examples

m <- fm_rcdt_2d(globe = 1)
fmesher_spherical_bsplines(m$loc, n = 3, degree = 2, uniform = FALSE)
fmesher_spherical_bsplines1(m$loc[, 3], n = 3, degree = 2, uniform = FALSE)

fmesher documentation built on July 1, 2024, 5:07 p.m.