Description Usage Arguments Value Examples
View source: R/postprocessing.R
Get a point estimate for a single location
1 | get_point_estimate(lon, lat, dpc_grid, fit)
|
lon |
Longitude of point |
lat |
Latitude of point |
dpc_grid |
Discrete Process Convolution grid |
fit |
Fitted model |
Posterior predictive mean at given location
1 2 3 4 5 6 7 | s = data.frame(lat = rep(0, 3), lon = c(-1:1))
y = c(1,1,0)
dpc_grid = get_grid(c(-1,1), c(0,0), spacing = 2)
priors = get_priors(dpc_grid)
iso_kernel_matrix = get_kernel_matrix(s, dpc_grid)
fit = get_mcmc(s, dpc_grid, y, 10, 1000, priors, 100, 1)
get_point_estimate(lon = s$lon[1], lat = s$lat[1], dpc_grid = dpc_grid, fit = fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.