| initialize.domain {gRaven} | R Documentation |
Re-initialise a gRaven domain
Description
Re-initialise a gRaven domain
Usage
initialize.domain(domain)
Arguments
domain |
name of gRaven domain |
Details
Emulates function of the same name in the RHugin package.
Restores the domain to the state it was in after the call to compile, in particular erasing all entered evidence.
Value
a NULL value is invisibly returned.
Author(s)
Peter J. Green, P.J.Green@bristol.ac.uk
Examples
demo("chest",package="gRaven",echo=FALSE)
compile(chest)
chest
set.finding(chest,"asia","yes")
set.finding(chest,"dysp","no")
propagate(chest)
sapply(get.nodes(chest),function(x) get.belief(chest,x))
get.normalization.constant(chest)
initialize.domain(chest)
sapply(get.nodes(chest),function(x) get.belief(chest,x))
get.normalization.constant(chest)
[Package gRaven version 1.1.8 Index]