set.table | R Documentation |
Set or get CPT in a gRaven domain
set.table(domain, n, tab = 1, type = c("cpt", "experience",
"fading"))
get.table(domain, n, type = c("cpt", "experience",
"fading"), class = c("data.frame", "table",
"ftable", "numeric"))
domain |
name of gRaven domain |
n |
name of node |
tab |
values of conditional probabilties |
type |
a character string specifying the type of table to set. |
class |
a character string specifying the class of the returned table |
For set.table
, a NULL value is invisibly returned; for get.table
, an object of required class.
Only type="cpt" and class="data.frame" are currently implemented in gRaven
.
Peter J. Green, P.J.Green@bristol.ac.uk
chest<-hugin.domain()
add.node(chest,"asia",states=c("yes","no"))
add.node(chest,"tub",states=c("yes","no"))
add.edge(chest,"tub","asia")
compile(chest)
chest
get.table(chest,"asia")
set.table(chest,"asia",c(0.01,0.99))
get.table(chest,"asia")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.