Description Usage Arguments Details Value Author(s) Examples
Generation of the start matrix with n rows and specified marginal probabilities p.
1 | start_matrix(p, k)
|
p |
Marginal probabilities of the start matrix. |
k |
Number of rows to be generated. |
The start matrix needs to be setup for further use in the genetic
algorithm implemented in the function iter_matrix
. For
high-dimensional cases or if the marginal probabilities have
multiple decimal places, the number k of rows should be large (up
to multiple thousand).
A (k x p)-Matrix with with entries 0 and 1 according to the specified marginal probabilities p.
Jochen Kruppa, Klaus Jung
1 2 3 4 | X0 <- start_matrix(p = c(0.5, 0.6), k = 10000)
## check if p can be restored
apply(X0, 2, mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.