The HUGIN software does not have functionality for automatic discretization of nodes. This would be a nice feature to have, but it has not yet been implemented.
The most efficient way for setting the intervals of a node and subsequently reading the posterior distribution over the intervals would be to write a small program for this using one of our APIs. For instance, you may use the ActiveX server to implement a macro using Visual Basic.
Given a network the steps to read the posterior probability distribution in a program are:
1) load the network
2) compile the network
3) enter evidence
4) propagate evidence
5) read the posterior beliefs of the node under consideration.
A simple visual basic macro implementing these steps may look something like this.
Sub asia()
Dim dom As Domain
Dim L, D As Node
Dim p As Double
' load the network
Set dom = LoadDomainFromNet("c:\asia.net", Nothing, 0)
' compile the network
dom.Compile
Set L = dom.GetNodeByName("L")
Set D = dom.GetNodeByName("D")
' enter evidence by selecting a state (alternatively you may load a case file)
D.SelectState (0)
' propagate evidence
Call dom.Propagate(hEquilibriumSum, hModeNormal)
' show beliefs
p = L.Belief(0)
Sheet1.Cells.Item(2, 1) = "P(L=yes|D=yes)"
Sheet1.Cells.Item(2, 2) = p
' end
End Sub
This macro loads the Asia model. You will need to adjust the macro to load the appropriate model, enter appropriate evidence and access the appropriate interval node.