rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/r
2019-10-21 10:18:17 +02:00

9 lines
136 B
Plaintext

dbenford <- function(x){
log10(1 + 1/x)
}
pbenford <- function(q){
cumprobs <- cumsum(dbenford(1:9))
return(cumprobs[q])
}