laplace | R Documentation |
Laplace (i.e. add constant) smoothing
laplace(freq, add = 0.5)
freq |
A numeric vector of term frequencies (integers). |
add |
The added value |
A numeric vector with the smoothed term proportions
laplace(c(0,0,1,1,1,2,2,2,3,3,4,7,10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.