list.domains | R Documentation |
List gRaven domain Objects
list.domains(print=TRUE)
print |
logical, should list of domains be output to console |
gRaven domains are R environment objects, with named slots typically including nodes, parents, cptables and net, where the net component is a gRain
grain
object. The domains that this function finds and lists are all the objects in .GlobalEnv of class "gRaven", and all those objects in this class that are components of a component named 'domains' of a list object in .GlobalEnv.
The function invisibly returns a character vector of the domain names found.
Peter J. Green, P.J.Green@bristol.ac.uk
demo(chest,package="gRaven")
chest
chest2<-clone.domain(chest)
chest2
set.finding(chest,"asia","yes")
set.finding(chest,"dysp","no")
propagate(chest)
get.belief(chest,"asia")
get.belief(chest,"tub")
propagate(chest2)
get.belief(chest2,"asia")
get.belief(chest2,"tub")
list.domains()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.