Skip to Content

Class Filter

Class Filter

Right-click the Class icon in the Status Bar to open Show Classes. Use the checkboxes to select Classes. The selector below the list controls how BayesiaLab combines them in the Graph Window.

Example

The example uses seven nodes and three overlapping Classes. The video uses Notes to show the overlap. The captures below show which nodes stay active for each selection.

Defining a Class Filter

A Class Filter combines the checked Classes according to the selected operation. In this example, the nodes belong to Classes as follows:

  • A={N2,N3,N5}\mathrm{A}=\{\mathit{N2}, \mathit{N3}, \mathit{N5}\}
  • B={N3,N4,N5,N6}\mathrm{B}=\{\mathit{N3}, \mathit{N4}, \mathit{N5}, \mathit{N6}\}
  • C={N5,N6,N7}\mathrm{C}=\{\mathit{N5}, \mathit{N6}, \mathit{N7}\}

The remaining node, N1\mathit{N1}, does not belong to a Class. Select the Classes using the checkboxes:

Show Classes selector above the Class icon, with A, B, and C checked and At Least in One selected.

The selected operation determines which nodes are active:

  • OR/Union (At Least in One): a node is active if it belongs to any selected Class or to no Class. If no Classes are selected, only nodes with no Class are active.
  • AND/Intersection (At Least in Each): a node is active if it belongs to every selected Class and at least one Class. If no Classes are selected, all nodes belonging to at least one Class are active.
  • STRICT AND/Intersection (Only in Each): a node is active if its Class memberships exactly match the nonempty selection. It must belong to every selected Class and no unselected Class. If no Classes are selected, no nodes are active.

Active nodes are shown at full opacity and can be manipulated. Other nodes remain visible but dimmed and cannot be manipulated. The examples below list the active nodes for each selection.

By default, the OR/Union operation (At Least in One) is selected in the menu.

OR/Union (At Least in One)

Selection: All

Active nodes: {N1,N2,N3,N4,N5,N6,N7}\{\mathit{N1}, \mathit{N2}, \mathit{N3}, \mathit{N4}, \mathit{N5}, \mathit{N6}, \mathit{N7}\}

At Least in One with A, B, C selected. Active nodes are N1, N2, N3, N4, N5, N6, N7.

Selection: None

Active nodes: {N1}\{\mathit{N1}\}

At Least in One with no Classes selected. Active nodes are N1.

Selection: A

Active nodes: {N1,N2,N3,N5}\{\mathit{N1}, \mathit{N2}, \mathit{N3}, \mathit{N5}\}

At Least in One with A selected. Active nodes are N1, N2, N3, N5.

Selection: B

Active nodes: {N1,N3,N4,N5,N6}\{\mathit{N1}, \mathit{N3}, \mathit{N4}, \mathit{N5}, \mathit{N6}\}

At Least in One with B selected. Active nodes are N1, N3, N4, N5, N6.

Selection: C

Active nodes: {N1,N5,N6,N7}\{\mathit{N1}, \mathit{N5}, \mathit{N6}, \mathit{N7}\}

At Least in One with C selected. Active nodes are N1, N5, N6, N7.

Selection: A, B

Active nodes: {N1,N2,N3,N4,N5,N6}\{\mathit{N1}, \mathit{N2}, \mathit{N3}, \mathit{N4}, \mathit{N5}, \mathit{N6}\}

At Least in One with A, B selected. Active nodes are N1, N2, N3, N4, N5, N6.

Selection: A, C

Active nodes: {N1,N2,N3,N5,N6,N7}\{\mathit{N1}, \mathit{N2}, \mathit{N3}, \mathit{N5}, \mathit{N6}, \mathit{N7}\}

At Least in One with A, C selected. Active nodes are N1, N2, N3, N5, N6, N7.

Selection: B, C

Active nodes: {N1,N3,N4,N5,N6,N7}\{\mathit{N1}, \mathit{N3}, \mathit{N4}, \mathit{N5}, \mathit{N6}, \mathit{N7}\}

At Least in One with B, C selected. Active nodes are N1, N3, N4, N5, N6, N7.

AND/Intersection (At Least in Each)

Selection: All

Active nodes: {N5}\{\mathit{N5}\}

At Least in Each with A, B, C selected. Active nodes are N5.

Selection: None

Active nodes: {N2,N3,N4,N5,N6,N7}\{\mathit{N2}, \mathit{N3}, \mathit{N4}, \mathit{N5}, \mathit{N6}, \mathit{N7}\}

At Least in Each with no Classes selected. Active nodes are N2, N3, N4, N5, N6, N7.

Selection: A

Active nodes: {N2,N3,N5}\{\mathit{N2}, \mathit{N3}, \mathit{N5}\}

At Least in Each with A selected. Active nodes are N2, N3, N5.

Selection: B

Active nodes: {N3,N4,N5,N6}\{\mathit{N3}, \mathit{N4}, \mathit{N5}, \mathit{N6}\}

At Least in Each with B selected. Active nodes are N3, N4, N5, N6.

Selection: C

Active nodes: {N5,N6,N7}\{\mathit{N5}, \mathit{N6}, \mathit{N7}\}

At Least in Each with C selected. Active nodes are N5, N6, N7.

Selection: A, B

Active nodes: {N3,N5}\{\mathit{N3}, \mathit{N5}\}

At Least in Each with A, B selected. Active nodes are N3, N5.

Selection: A, C

Active nodes: {N5}\{\mathit{N5}\}

At Least in Each with A, C selected. Active nodes are N5.

Selection: B, C

Active nodes: {N5,N6}\{\mathit{N5}, \mathit{N6}\}

At Least in Each with B, C selected. Active nodes are N5, N6.

STRICT AND/Intersection (Only in Each)

Selection: All

Active nodes: {N5}\{\mathit{N5}\}

Only in Each with A, B, C selected. Active nodes are N5.

Selection: None

Active nodes: ∅\emptyset

Only in Each with no Classes selected. All nodes are dimmed.