calc_gaussian_function_2D: Calculate Gaussian function value for a point in 2D space

View source: R/calc_gaussian_function_2D_function.R

calc_gaussian_function_2DR Documentation

Calculate Gaussian function value for a point in 2D space

Description

Function that returns for each X-Y-coordinate pair the value of a Gaussian function.

Usage

calc_gaussian_function_2D(Xpt, Ypt, amp = 1, Xctr = 0, Yctr = 0, sd = 1)

Arguments

Xpt

X-coordinate of the point

Ypt

Y-coordinate of the point

amp

Amplitude of the peak of the Gaussian curve

Xctr

X-coordinate of the center point

Yctr

Y-coordinate of the center point

sd

Standard deviation of the Gaussian curve (for a curve that contains >99% of the area between -1 and 1 use sd=0.4)

Value

Vector of function values for each input point

Author(s)

Nikolai Knapp

Examples

in progress

niknap/slidaRtools documentation built on Oct. 16, 2024, 3:53 p.m.