Skip to content
/ pfocal Public

❗ This is a read-only mirror of the CRAN R package repository. pfocal — Fast Convolution of Matrices. Homepage: https://landscitech.github.io/pfocal/ Report bugs for this package: https://github.com/LandSciTech/pfocal/

Notifications You must be signed in to change notification settings

cran/pfocal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

❗ This is a read-only mirror of the CRAN R package repository. pfocal — Fast Convolution of Matrices. Homepage: https://landscitech.github.io/pfocal/ Report bugs for this package: https://github.com/LandSciTech/pfocal/

Resources

Stars

Watchers

Forks

Packages

No packages published