Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

laplace

Laplace (i.e. add constant) smoothing


Description

Laplace (i.e. add constant) smoothing

Usage

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

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

corpustools

Managing, Querying and Analyzing Tokenized Text

v0.4.10
GPL-3
Authors
Kasper Welbers and Wouter van Atteveldt
Initial release
2022-05-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.