laplace: Laplace (i.e. add constant) smoothing

Description Usage Arguments Value Examples

View source: R/smoothing.r

Description

Laplace (i.e. add constant) smoothing

Usage

1
laplace(freq, add = 0.5)

Arguments

freq

A numeric vector of term frequencies (integers).

add

The added value

Value

A numeric vector with the smoothed term proportions

Examples

1
laplace(c(0,0,1,1,1,2,2,2,3,3,4,7,10))

kasperwelbers/corpustools documentation built on Sept. 1, 2018, 1:03 p.m.