plantedsubmatrix {admmDensestSubmatrix} | R Documentation |
Sample matrix
Description
Generates binary - matrix sampled from dense
- submatrix.
Usage
plantedsubmatrix(M, N, m, n, p, q)
Arguments
M |
number of rows in sampled matrix |
N |
number of rows in sampled matrix |
m |
number of rows in dense submatrix |
n |
natural number used to calculate number of rows in dense submatrix |
p |
density outside planted submatrix |
q |
density inside planted submatrix |
Details
Let and
be
and
index sets.
For each i in U*, j in V* we let
with probability
and
otherwise.
For each remaining
we set
with probability
and take
otherwise.
Value
Matrix sampled from the planted dense
-submatrix model, dense sumbatrix
, matrix
used to count the number of disagreements between
and
Examples
plantedsubmatrix(10,10,1,2,0.25,0.75)
[Package admmDensestSubmatrix version 0.1.0 Index]