expWeight: This function computes the smooth windowing weights

Description Usage Arguments Value Author(s) See Also Examples

View source: R/auxFuncs.R

Description

This function computes the exponential weights (smooth windowing function) for different shapes (k) and bandwidth (l) and provides some plots

Usage

1
  expWeight(t, k, l, m = 0, plot = FALSE, ...)

Arguments

t

Vector. a vector of positive continuous values

k

A single value for sharpness

l

A single value for bandwidth

m

Vector. The location of the modes on t

plot

Logical flag. Set to true shows a plot of the weights.

...

The parameters that are passed to the plot() function

Value

A vector of weights

Author(s)

Hamed Haselimashhadi <hamedhaseli@gmail.com>

See Also

SmoothWin

Examples

1
2
3
4
5
6
7
  weight = expWeight(
    t = 1:100,
    k = 1,
    l = 5,
    m = c(25, 50, 75),
    plot = TRUE
  )

Hamedhm/SmoothWin documentation built on May 18, 2019, 10:13 a.m.