# occupation: Calculates the occupation for a basis. Here, occupation... In cdiener/dycone: dycone - analyze the dynamic landscape of metabolome data

## 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.

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)