Learn R Programming

pfocal

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)

Copy Link

Version

Install

install.packages('pfocal')

Monthly Downloads

2

Version

1.0.0

License

GPL-3

Maintainer

Josie Hughes

Last Published

June 17th, 2022

Functions in pfocal (1.0.0)

pfocal

Fast, parallel implementation of grid data convolution
pfocal_fast_gaussian_radius

Fast methods for common kernel computations
gaussian_kernel_confidence

Compute a Gaussian kernel
binomial_kernel

Compute an Binomial kernel
pfocal-package

pfocal: Fast Convolution of Matrices
euclidean_distance_kernel

Compute an Distance kernel
normalize_kernel

Normalize a kernel
kernel_flip_horizontal

Flip a kernel
exponential_kernel

Compute an Exponential kernel
pfocal_info_transform

Retrieve kernel and arguments information
smooth_uniform_circle_kernel

Compute an Circular kernel