Description Usage Arguments Value Author(s) Examples
An object representing a multivariate univariate muniform distribution is created.
1 | muniformdistribution(startvec, stopvec)
|
startvec |
A vector with the lower bounds for the distribution. |
stopvec |
A vector with the upper bounds for the distribution. |
A multivariate uniform probability distribution.
Petter Mostad <mostad@chalmers.se>
1 2 3 | dist <- muniformdistribution(rep(0, 5), rep(1, 5))
expectation(dist)
variance(dist)
|
Loading required package: MASS
[1] 0.5 0.5 0.5 0.5 0.5
[,1] [,2] [,3] [,4] [,5]
[1,] 0.08333333 0.00000000 0.00000000 0.00000000 0.00000000
[2,] 0.00000000 0.08333333 0.00000000 0.00000000 0.00000000
[3,] 0.00000000 0.00000000 0.08333333 0.00000000 0.00000000
[4,] 0.00000000 0.00000000 0.00000000 0.08333333 0.00000000
[5,] 0.00000000 0.00000000 0.00000000 0.00000000 0.08333333
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.