compile.gRaven {gRaven}R Documentation

Compile a gRaven domain

Description

Compile a gRaven domain

Usage

## S3 method for class 'gRaven'
compile(object, ...)
check.compiled(object)

Arguments

object

name of gRaven domain

...

additional arguments to compile

Details

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.

Value

a NULL value is invisibly returned.

Author(s)

Peter J. Green, P.J.Green@bristol.ac.uk

Examples

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

[Package gRaven version 1.1.8 Index]