Help for this page

Select Code to Download


  1. or download this
    my $couldy=['cloudy','t','f']; # 'cloudy' is the node name and 't','f'
    + are the values this node can assume. Likewise for other nodes.
    ...
    my $rain=['rain','t','f'];
    my $wetgrass=['wetgrass','t','f'];
    my $values=[$sprinkler,$couldy,$rain,$wetgrass];
    
  2. or download this
    my $raValueSets =
       [
    ...
          ['rain', 't', 'f'],
          ['wetgrass', 't', 'f'],
       ];
    
  3. or download this
    sub cpt
    {
    ...
        }
        ...
    }
    
  4. or download this
        my ($node) = @_;