BN {criticality} | R Documentation |
BN Function
Description
This function creates a Bayesian network from pre-formatted nuclear facility data.
Usage
BN(dist = "gamma", facility.data, ext.dir)
Arguments
dist |
Truncated probability distribution (e.g., "gamma", "normal") |
facility.data |
.csv file name |
ext.dir |
External directory (full path) |
Value
A Bayesian network that models fissile material operations (op), controls (ctrl), and parameters that affect nuclear criticality safety
Examples
ext.dir <- paste0(tempdir(), "/criticality/extdata")
dir.create(ext.dir, recursive = TRUE, showWarnings = FALSE)
extdata <- paste0(.libPaths()[1], "/criticality/extdata")
file.copy(paste0(extdata, "/facility.csv"), ext.dir, recursive = TRUE)
file.copy(paste0(extdata, "/mcnp-dataset.RData"), ext.dir, recursive = TRUE)
BN(
facility.data = "facility.csv",
ext.dir = ext.dir
)
[Package criticality version 0.9.3 Index]