occupation: Calculates the occupation for a basis. Here, occupation...

Description Usage Arguments Value See Also Examples

Description

Calculates the occupation for a basis. Here, occupation denotes the faction of basis vectors for each varibale where the variable is not zero.

Usage

1
occupation(basis)

Arguments

basis

A basis matrix, where each column denotes a basis vector.

Value

A vector of length nrow(basis) containing the occupation for each dimension.

See Also

polytope_basis to get a k-cone.

Examples

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)

cdiener/dycone documentation built on May 13, 2019, 2:41 p.m.