Description Usage Arguments Value See Also Examples
Calculates the occupation for a basis. Here, occupation denotes the faction of basis vectors for each varibale where the variable is not zero.
1 | occupation(basis)
|
basis |
A basis matrix, where each column denotes a basis vector. |
A vector of length nrow(basis) containing the occupation for each dimension.
polytope_basis
to get a k-cone.
1 2 3 4 | S <- matrix(c(1,0,0,1,-1,0, 0, -1), nrow=2)
rownames(S) = c('A', 'B')
V <- polytope_basis(S)
occ <- occupation(V)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.