Description Usage Arguments Value Details Examples
Complex Polytope Gibbs Sampling This function draw uniform samples in a convex polytope with both equality and inequality constraints
1 | cpgsEquality(N, A, b, C, v, x0, thin = 1L)
|
N |
the number of samples to generate |
A |
a matrix of coefficients of inequality constants A.x<=b |
b |
a vector of length equals to nrow(A) |
C |
a matrix of coefficients of inequality constants C.x=v |
v |
a vector of length equals to nrow(C) |
x0 |
a vector of length equals to ncol(A) that should be in the polytope, for example returned by |
thin |
the thinning interval |
a matrix with one row per sample and one column per parameter
This function is based on an initial matlab code developped called CPRND (https://ch.mathworks.com/matlabcentral/fileexchange/34208-uniform-distribution-over-a-convex-polytope) It generates samples within the complex polytope defined by A \cdot x â¤qslant b
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.