R/alpha_val.R

Defines functions alpha_val

Documented in alpha_val

#' bernouli distribution over edge existance probability
#'
#' @param rho Prior over edge existance
#'
#' @return
#' @export
alpha_val = function(rho) {
  return(matrix(
    LaplacesDemon::rbern(length(rho), rho),
    nrow = nrow(rho),
    ncol = ncol(rho)
    #,dimnames =  list(netPara[["S_names"]],netPara[["S_names"]])
  ))
}
ZahraNSL/ODENEM documentation built on Dec. 31, 2020, 6:35 p.m.