Description Usage Arguments Value Examples
View source: R/lib_FindFeasibleMatrix.R
Creates a matrix with nonnegative entries, given row and column sums and 0 on the diagonal. Superseeded by the more flexible findFeasibleMatrix.
1 | getfeasibleMatr(L, A)
|
L |
Vector of row sums |
A |
Vector of column sums |
A matrix with nonnegative entries and given row/column sums and 0 on the diagonal.
1 2 3 4 5 | getfeasibleMatr(c(0.5,1,0),c(0.5,0,1))
getfeasibleMatr(rep(1,4),rep(1,4))
getfeasibleMatr(2^(1:3),2^(3:1))
getfeasibleMatr(1:5,1:5)
getfeasibleMatr(1:5,5:1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.