calc_gaussian_function: Calculate Gaussian function value for a point

View source: R/calc_gaussian_function_function.R

calc_gaussian_functionR Documentation

Calculate Gaussian function value for a point

Description

Function that returns for each given point the value of a Gaussian function.

Usage

calc_gaussian_function(pt, amp = 1, ctr = 0, sd = 1)

Arguments

pt

Coordinate of the point

amp

Amplitude of the peak of the Gaussian curve

ctr

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.