Learn R Programming

sentometrics (version 0.2)

exponentials: Compute exponential weighting curves

Description

Computes exponential weighting curves. Handy to self-select specific time aggregation weighting schemes for input in ctr_agg.

Usage

exponentials(n, alphas = seq(0.1, 0.5, by = 0.1))

Arguments

n

a single numeric to indicate the length of the curve (the number of lags).

alphas

a numeric vector of decay factors.

Value

A data.frame of exponential weighting curves per value of alphas.

See Also

ctr_agg