Package com.bayesserver
Class UnrollOutput
- java.lang.Object
-
- com.bayesserver.UnrollOutput
-
public final class UnrollOutput extends Object
Contains information returned byUnroller.unroll(com.bayesserver.Network, int, com.bayesserver.UnrollOptions)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnrollOutput.NodeTime
Identifies a node and related time.static class
UnrollOutput.VariableTime
Identifies a variable and related time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Network
getDbn()
Gets the Dynamic Bayesian network before it was unrolled.UnrollOutput.NodeTime
getDbnNode(Node unrolledNode)
Maps from a node in the unrolled network to the corresponding node in the original Dynamic Bayesian network.UnrollOutput.VariableTime
getDbnVariable(Variable unrolledVariable)
Maps from a variable in the unrolled network to the corresponding variable in the original Dynamic Bayesian network.int
getSliceCount()
Gets the slice count of the unrolled network.Network
getUnrolled()
Gets the unrolled Dynamic Bayesian network.Node
getUnrolledNode(Node dbnNode, Integer time)
Maps between a node in the original Dynamic Bayesian network, and the corresponding node in the unrolled network.Variable
getUnrolledVariable(Variable dbnVariable, Integer time)
Maps between a variable in the original Dynamic Bayesian network, and the corresponding variable in the unrolled network.
-
-
-
Method Detail
-
getDbn
public Network getDbn()
Gets the Dynamic Bayesian network before it was unrolled.- Returns:
- The Dynamic Bayesian network.
-
getUnrolled
public Network getUnrolled()
Gets the unrolled Dynamic Bayesian network.
-
getSliceCount
public int getSliceCount()
Gets the slice count of the unrolled network.- Returns:
- The slice count.
-
getDbnVariable
public UnrollOutput.VariableTime getDbnVariable(Variable unrolledVariable)
Maps from a variable in the unrolled network to the corresponding variable in the original Dynamic Bayesian network.- Parameters:
unrolledVariable
- The unrolled variable.- Returns:
- The variable in the original Dynamic Bayesian network, and the time that it corresponds to.
-
getDbnNode
public UnrollOutput.NodeTime getDbnNode(Node unrolledNode)
Maps from a node in the unrolled network to the corresponding node in the original Dynamic Bayesian network.- Parameters:
unrolledNode
- The unrolled node.- Returns:
- The node in the original Dynamic Bayesian network, and the time that the unrolled node represents.
-
getUnrolledNode
public Node getUnrolledNode(Node dbnNode, Integer time)
Maps between a node in the original Dynamic Bayesian network, and the corresponding node in the unrolled network.- Parameters:
dbnNode
- The node in the original Dynamic Bayesian network.time
- The time at which to retrieve the corresponding unrolled node.- Returns:
- The node in the unrolled network.
-
getUnrolledVariable
public Variable getUnrolledVariable(Variable dbnVariable, Integer time)
Maps between a variable in the original Dynamic Bayesian network, and the corresponding variable in the unrolled network.- Parameters:
dbnVariable
- The variable in the original Dynamic Bayesian network.time
- The time at which to retrieve the corresponding unrolled variable.- Returns:
- The variable in the unrolled network.
-
-