gausskern: Create Gaussian Kernel

Description Usage Arguments Value Author(s) References Examples

View source: R/gausskern.R

Description

gausskern calculates 2D Gaussian kernel based on kernel size, deviation, and advection

Usage

1
gausskern(siz, sigma, muadv = 0)

Arguments

siz

size of the kernel, siz x siz. Must be a positive integer.

sigma

standard deviation of the kernel. Unit is cell width. Must be a positive number.

muadv

advection of the kernel. Unit of the input is cell width. Defaults to 0.

Value

Gaussian kernel as a 2D matrix of size (siz x siz)

Author(s)

Function originally written for Matlab by Martin W. Pedersen, translated to R by Benjamin Galuardi

References

Pedersen, M.W., Righton, D., Thygesen, U.H., Andersen, K.H., and Madsen, H. 2008. Geolocation of North Sea cod (Gadus morhua) using hidden Markov models and behavioural switching. Canadian Journal of Fisheries and Aquatic Sciences 65(11): 2167-1377.

Examples

1
kern = gausskern(3, 0.5)

HMMoce documentation built on Nov. 17, 2017, 5:57 a.m.