gaussian_weight: Calculate gaussian weights.

View source: R/smoothing_functions.R

gaussian_weightR Documentation

Calculate gaussian weights.

Description

Get the gaussian weight of a statistic given its position relative to the center and scaling factor sigma.

Usage

gaussian_weight(p, c, s)

Arguments

p

numeric. Position of value to smooth.

c

numeric. Position of center of window.

s

numeric. Sigma, scaling factor.

Value

A numeric value, the relative weight of the point.


hemstrow/snpR documentation built on March 20, 2024, 7:03 a.m.