Class SepsetMapDci
Stores a map from pairs of nodes to separating sets--that is, for each unordered pair of nodes {node1, node2} in a graph, stores a set of nodes conditional on which node1 and node2 are independent (where the nodes are considered as variables) or stores null if the pair was not judged to be independent. (Note that if a sepset is non-null and empty, that should means that the compared nodes were found to be independent conditional on the empty set, whereas if a sepset is null, that should mean that no set was found yet conditional on which the compared nodes are independent. So at the end of the search, a null sepset carries different information from an empty sepset.)> 0
We cast the variable-like objects to Node to allow them either to be variables explicitly or else to be graph nodes that in some model could be considered as variables. This allows us to use d-separation as a graphical indicator of what independendence in models ideally should be.> 0
- Version:
- $Id: $Id
- Author:
- Robert Tillman
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for SepsetMapDci.SepsetMapDci
(SepsetMapDci map) Constructor for SepsetMapDci. -
Method Summary
Modifier and TypeMethodDescriptionboolean
get.Retrieves the sepset previously set for {x, y}, or null if no such set was previously set.getSeparatedPairs.Retrieves the set of all condioning sets for {x, y} or null if no such set was ever setstatic SepsetMap
Generates a simple exemplar of this class to test serialization.void
Sets the sepset for {x, y} to be z.void
set
(Node x, LinkedHashSet<Node> z) set.int
size()
size.toString()
toString.
-
Constructor Details
-
SepsetMapDci
public SepsetMapDci()Constructor for SepsetMapDci.
-
SepsetMapDci
Constructor for SepsetMapDci.
- Parameters:
map
- aSepsetMapDci
object
-
-
Method Details
-
serializableInstance
-
set
-
get
-
getSet
-
set
set.
- Parameters:
x
- aNode
objectz
- aLinkedHashSet
object
-
get
get.
- Parameters:
x
- aNode
object- Returns:
- a
LinkedHashSet
object
-
getSeparatedPairs
-
equals
-
size
public int size()size.
- Returns:
- a int
-
toString
-