knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) set.seed(77)
The goal of pfocal
is to implement fast parallel convolution. R version >= 4.0.0 is required.
You can install the package as such:
# From CRAN install.packages("devtools") # Dev version from GitHub devtools::install_github("LandSciTech/pfocal")
library(pfocal) data <- matrix(nrow = 100, ncol = 100, data = runif(n = 100*100, min = 0, max = 10)) image(data, asp = 1)
kernel <- exponential_kernel() convoluted <- pfocal(data = data, kernel = kernel, edge_value = 0) image(convoluted, asp = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.