Description Details Slots Examples
Implementation of the function
f \colon T_n \to (0,∞),\, \vec{x} \mapsto f(\vec{x}) = ∏_{i=1}^{n}x_i^{v_i-1}(1 - x_1 - … - x_n)^{v_{n+1}-1},
where n \in \{1,2,3,…\} is the dimension of the integration domain T_n = \{\vec{x} \in \R^n : x_i≥q 0, \Vert \vec{x} \Vert_1 ≤q 1\} and v_i>0, i=1,…,n+1, are constants. The integral is known to be
\int_{T_n} f(\vec{x}) d\vec{x} = \frac{∏_{i=1}^{n+1}Γ(v_i)}{Γ(∑_{i=1}^{n+1}v_i)},
where v_i>0 for i=1,…,n+1.
The instance needs to be created with two parameters representing the dimension n and the vector of positive parameters.
dim
An integer that captures the dimension
v
A vector of dimension n+1 with positive entries representing the constants
1 2 | n <- as.integer(3)
f <- new("standardSimplex_Dirichlet",dim=n,v=c(1,2,3,4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.