Skip to contents

Draws S samples from each area of sf and averages kernel over each pair of draws. If a lengthscale is not provided then the best_average method is used.

Usage

integrated_covariance(
  sf,
  L = 10,
  kernel = matern,
  type = "hexagonal",
  l = NULL,
  ...
)

Arguments

sf

A simple features object with some geometry.

L

The number of Monte Carlo samples to draw from each area.

kernel

A kernel function, defaults to matern.

type

The type argument of sf::st_sample, defaults to "hexagonal"

l

A lengthscale.

...

Additional arguments to kernel.

Examples

integrated_covariance(mw)
#> Error in nrow(sf): object 'mw' not found