Learn R Programming

HMMoce (version 1.0.0)

gausskern: Create Gaussian Kernel

Description

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

Usage

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)

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

Run this code
# NOT RUN {
kern = gausskern(3, 0.5)

# }

Run the code above in your browser using DataLab