Skip to Content

Class Filter

Class Filter

Right-clicking on the Classes icon in the Status Bar brings up the list of all Classes, from which you can select which Classes to display in the Graph Window. Additionally, there is a combo-box menu at the bottom of the list, which allows you to define a “filter” for displaying sets of Classes, a so-called Class Filter.

Example

To help understand the function of the Class Filter, we illustrate it with the following example network. Classes A, B, and C are highlighted in color using BayesiaLab’s Notes functionality.

Defining a Class Filter

To explain the functionality of the Class Filter, we furthermore employ set operators and logical operators:

In this network, the nodes are assigned to Classes as follows:

  • Let U be the universal set

  • ∅={}, the empty set, containing no classes

  • A=N2,N3,N5A={N2, N3, N5}

  • B=N3,N4,N5,N6B={N3, N4, N5, N6}

  • C=N5,N6,N7C={N5, N6, N7}

  • The complements of the sets A, B, and C are denoted:

    • A=xU,xAA' = {x ∈ U, x ∉ A}
    • B=xU,xBB' = {x ∈ U, x ∉ B}
    • C=xU,xCC' = {x ∈ U, x ∉ C}
  • Let S be the set of Classes selected (checked) in the menu:

    FilterAtLeastInOne-All
  • The complement of the set S is denoted S=xU,xSS' = {x ∈ U, x ∉ S}

  • NSN \in S refers to nodes NN belonging to the selected Classes.

  • S\cup S means the union of selected Classes.

  • S\cap S means the intersection of selected Classes.

To define a Class Filter, you need to select the Classes and furthermore specify what Set Operation to apply to them:

  • OR/Union of selected Classes means that a node is a member of any (“at least in one”) of the checked Classes.
    • The nodes NN will be visible if NSNN \in \cup S \lor N \in \emptyset
  • AND/Intersection of checked Classes means that a node is a member in all of the checked Classes (“at least in each”).
    • The nodes NN will be visible if (NSS)N(N \in \cap S \lor S \neq \emptyset) \land N \notin \emptyset
  • STRICT AND/Intersection means that a node is only a member of the intersection of checked Classes (“only in each”), but not a member of any of the unchecked Classes.
    • The nodes NN will be visible if NSNSNN \in \cap S \land N \notin S' \land N \notin \emptyset

By default, the OR/Union operation (“at least in one”) is selected in the menu.

By default, the OR/Union operation (“at least in one”) is selected in the menu.

OR/Union (“At Least in One”)

Selection: All

Visible Nodes: N1,N2,N3,N4,N5,N6,N7{N1, N2, N3, N4, N5, N6, N7}

FilterAtLeastInOne%2BAll

Selection: None

Visible Node: N1{N1}

FilterAtLeastInOne%2BNone

Selection: A

Visible Nodes: N1,N2,N3,N5{N1, N2, N3, N5}

FilterAtLeastInOne%2BA

Selection: B

Visible Nodes: N1,N3,N4,N5,N6{N1, N3, N4, N5, N6}

FilterAtLeastInOne%2BB

Selection: C

Visible Nodes: N1,N5,N6,N7{N1, N5, N6, N7}

FilterAtLeastInOne%2BC

Selection: A, B

Visible Nodes: N1,N2,N3,N4,N5,N6{N1, N2, N3, N4, N5, N6}

FilterAtLeastInOne%2BAB

Selection: A, C

Visible Nodes: N1,N2,N3,N5,N6,N7{N1, N2, N3, N5, N6, N7}

FilterAtLeastInOne%2BAC

Selection: B, C

Visible Nodes: N1,N3,N4,N5,N6,N7{N1, N3, N4, N5, N6, N7}

FilterAtLeastInOne%2BBC

AND/Intersection (“At Least in Each”)

Selection: All

Visible Node: N5{N5}

FilterAtLeastInEach%2BAll

Selection: None

Visible Nodes: N2,N3,N4,N5,N6,N7{N2, N3, N4, N5, N6, N7}

FilterAtLeastInEach%2BNone

Selection: A

Visible Nodes: N2,N3,N5{N2, N3, N5}

FilterAtLeastInEach%2BA

Selection: B

Visible Nodes: N3,N4,N5,N6{N3, N4, N5, N6}

FilterAtLeastInEach%2BB

Selection: C

Visible Nodes: N5,N6,N7{N5, N6, N7}

FilterAtLeastInEach%2BC

Selection: A, B

Visible Nodes: N3,N5{N3, N5}

FilterAtLeastInEach%2BAB

Selection: A, C

Visible Nodes: N5{N5}

FilterAtLeastInEach%2BAC

Selection: B, C

Visible Nodes: N5,N6{N5, N6}

FilterAtLeastInEach%2BBC

STRICT AND/Intersection (“Only in Each”)

Selection: All

Visible Node: N5{N5}

FilterOnlyEach%2BALL

Selection: None

Visible Node: ∅

FilterOnlyEach%2BNone