Description Usage Arguments Value Author(s) Examples
Considering a Laplace Distribution calculates the log-density
ld = log(0.5) + log(λ) - λ * |y - μ|
1 2 3 4 |
y |
observations, numeric or reference object of class 'number' |
mu |
location parameter, numeric or reference object of class 'number' |
lam |
rate parameter, numeric of reference object of class 'number' |
Returns a 'numeric' or a reference object of class 'number'
Filippo Monari
1 2 3 4 5 6 | modello.init(10, 10, 10, 10)
y = number(rnorm(10))
ld = ldlaplace(y, .k(0), .k(1))
print(ld)
print(ld$v)
modello.close()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.