Learn R Programming

poseticDataAnalysis (version 1.0.0)

DominanceMatrix: Computing the dominance matrix.

Description

Computes the dominance matrix of the input poset.

Usage

DominanceMatrix(poset)

Value

An \(n\times n\) boolean matrix \(Z\), where \(n\) is the number of poset elements, with \(Z[i,j]=TRUE\), if and only if the j-th poset element weakly dominates (\(\leq\)) the i-th element, in the input order relation.

Arguments

poset

An object of S4 class POSet. Argument poset must be created by using any function contained in the package aimed at building object of S4 class POSet (e.g. POSet(), LinearPOSet(), ProductPOSet(), ...) .

Examples

Run this code
elems <- c("a", "b", "c", "d")
dom <- matrix(c(
  "a", "b",
  "c", "b",
  "b", "d"
), ncol = 2, byrow = TRUE)

pos <- POSet(elements = elems, dom = dom)

Z <- DominanceMatrix(pos)

Run the code above in your browser using DataLab