nbasis function

Number of basis functions

Number of basis functions

Retrieve the number of basis functions from Basis or SRE object.

nbasis(.Object) ## S4 method for signature 'Basis_obj' nbasis(.Object) ## S4 method for signature 'SRE' nbasis(.Object)

Arguments

  • .Object: object of class Basis or SRE

Examples

library(sp) data(meuse) coordinates(meuse) = ~x+y # change into an sp object G <- auto_basis(manifold = plane(), data=meuse, nres = 2, regular=1, type = "Gaussian") print(nbasis(G))

See Also

auto_basis for automatically constructing basis functions.

  • Maintainer: Andrew Zammit-Mangion
  • License: GPL (>= 2)
  • Last published: 2024-07-16