Last chance! 50% off unlimited learning
Sale ends in
getRow(noflevels, row.no, zerobased = FALSE)
The implicant matrix consists of all supersets of the rows of a configuration matrix, including the configurations themselves as well as the empty set. The formula for the number of implicants is $\prod_{j = 1}^{k}{(p_j + 1)}$.
The getRow()
function transforms the decimal representation of a row number from a
configuration matrix into its corresponding combination of levels or from an implicant matrix
into its corresponding combination of level index values.
createMatrix
, expand.grid
# all three conditions have two levels
x <- c(2, 2, 2)
# rows from the configuration matrix
# 1 1 1
getRow(noflevels = x, row.no = 8)
# 0 0 0
getRow(noflevels = x, row.no = 0, zerobased = TRUE)
# same as above
getRow(noflevels = x, row.no = 1)
# second condition has three levels: 0, 1 and 2
x <- c(2, 3, 2)
# 1 2 0
getRow(noflevels = x, row.no = 11)
# the empty set in the implicant matrix
getRow(noflevels = x, 1) - 1
Run the code above in your browser using DataLab