LandSciTech / pfocal

Fast parallel convolution in R.

Home Page:https://landscitech.github.io/pfocal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pfocal

License: GPL v3 Project Status: WIP R-CMD-check Codecov test coverage

The goal of pfocal is to implement fast parallel convolution. R version >= 4.0.0 is required.

Installation

You can install the package as such:

# From CRAN
install.packages("devtools")

# Dev version from GitHub
devtools::install_github("LandSciTech/pfocal")

Example

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)

About

Fast parallel convolution in R.

https://landscitech.github.io/pfocal/

License:Other


Languages

Language:R 55.9%Language:C++ 44.0%Language:C 0.1%