powered by
Laplace (i.e. add constant) smoothing
laplace(freq, add = 0.5)
A numeric vector with the smoothed term proportions
A numeric vector of term frequencies (integers).
The added value
laplace(c(0,0,1,1,1,2,2,2,3,3,4,7,10))
Run the code above in your browser using DataLab