compile.gRaven | R Documentation |
Compile a gRaven domain
## S3 method for class 'gRaven'
compile(object, ...)
check.compiled(object)
object |
name of gRaven domain |
... |
additional arguments to |
check.compiled
compiles the domain if necessary, having first ensured that necessary information such as cptables
is in place. If the domain is already compiled, compile
triggers a warning, but proceeds to re-initialise the grain
object domain$net
, in particular deleting any evidence set.
a NULL value is invisibly returned.
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")
chest
compile(chest)
chest
set.finding(chest,"asia","yes")
set.finding(chest,"dysp","no")
propagate(chest)
chest$nodes
chest$states
chest$parents
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.