filter_gaussian: Gaussian density filter

View source: R/filters.R

filter_gaussianR Documentation

Gaussian density filter

Description

filter_gaussian computes the Gaussian density filter.

Usage

filter_gaussian(dist, sigma = 1, ...)

Arguments

dist

The distance matrix.

sigma

A scalar controling the sensitivity of the gaussian kernel.

...

Further arguments.

Details

The Gaussian density filter is defined as f(x_i;σ) = C∑_{j=1}^n exp(-\frac{\|x_i-x_j\|^2}{2σ^2}), where C is the normalizing constant and σ is the scalar controling the sensitivity of the gaussian kernel.

Value

A matrix object of filter values.

Examples

tp_data = chicken_generator(1)
tp_dist = dist(tp_data[,-1])
filter_gaussian(dist=tp_dist, sigma=1)


TianshuFeng/SemiMapper documentation built on Sept. 16, 2022, 10:26 p.m.