Description Usage Arguments Value Details Examples
Complex Polytope Gibbs Sampling This function draw uniform samples in a convex polytope with inequality constraints
1 | cpgs(N, A, b, x0, thin = 1L)
|
N |
the number of samples to generate |
A |
a matrix |
b |
a vector of length equals to nrow(A) |
x0 |
a vector of length equals to nrcol(A) that should be in the polytope, for example returned by |
thin |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.