nres: Return the number of resolutions

Description Usage Arguments See Also Examples

Description

Return the number of resolutions from a basis function object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
nres(b)

## S4 method for signature 'Basis'
nres(b)

## S4 method for signature 'TensorP_Basis'
nres(b)

## S4 method for signature 'SRE'
nres(b)

Arguments

b

object of class Basis or SRE

See Also

auto_basis for automatically constructing basis functions and show_basis for visualising basis functions.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(sp)
set.seed(1)
d <- data.frame(lon = runif(n=1000,min = -179, max = 179),
                lat = runif(n=1000,min = -90, max = 90),
                z = rnorm(5000))
coordinates(d) <- ~lon + lat
proj4string(d)=CRS("+proj=longlat")

### Now create basis functions on sphere
G <- auto_basis(manifold = sphere(),data=d,
                nres = 2,prune=15,
                type = "bisquare",
                subsamp = 20000)
nres(G)

FRK documentation built on May 2, 2019, 8:11 a.m.