R/p.combos.R

Defines functions p.combos

Documented in p.combos

#' Internal Logic Forest Functions
#'
#' This function is called by \code{prime.imp}. It is not intended to be used independently of this function.
#' @returns No return value, called for side effects
#'
#' @export
#' @keywords internal

p.combos<-function(n.pair,conj=0)
{
  mat<-matrix(0,2^n.pair,n.pair)
  for(i in 1:n.pair)
  {
    mat[, i]<-rep(rep(c(1,conj),e=2^(n.pair-i)),2^(i-1))
  }
  mat
}

Try the LogicForest package in your browser

Any scripts or data that you put into this service are public.

LogicForest documentation built on June 22, 2024, 7:05 p.m.