View source: R/EquivalenceClass.R
EquivalenceClass | R Documentation |
The marginal polytope and related objects have many symmetries. By relabelling the levels of discrete variables we transform facets into other facets. This function reduces a list of halfspace normals to its equivalence classes.
EquivalenceClass(bS, M, Hrep)
bS |
A binary matrix specifying the set of observation patterns. Each row encodes a single pattern. |
M |
A vector of positive integers giving the alphabet sizes of the discrete variables. |
Hrep |
An H-representation generated by |
A list of representative halfspace normals.
bS=matrix(c(1,1,0, 1,0,1, 0,1,1),byrow=TRUE,ncol=3) # Our canonical 3d example
Hrep=MargPolyHrep(bS,c(2,2,2))
EquivalenceClass(bS,c(2,2,2),Hrep)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.