extractCPT,extractPOT {gRain} | R Documentation |
Extract conditional probabilities and clique potentials from data
extractCPT(x, graph, V = nodes(graph), smooth = 0) extractPOT(x, graph, smooth = 0)
x |
A contingency table (an array) |
graph |
To extractCPT graph is a DAG while to extractPOT graph is an undirected triangulated graph. |
V |
The set of vertices for which CPTs should be extracted |
smooth |
See 'details' below |
If smooth
is non–zero then zero entries of
values
are replaced with smooth
before normalization takes place.
extractCPT: A list of conditional probability tables extractPOT: A list of clique potentials
Søren Højsgaard, sorenh@agrsci.dk