Please consider a donation to the Higher Intellect project. See https://preterhuman.net/donate.php or the Donate to Higher Intellect page for more info.

Changes

Jump to navigation Jump to search
no edit summary
Line 48: Line 48:  
are marked using curly braces. The general format of a block is:
 
are marked using curly braces. The general format of a block is:
 
<pre width="132">
 
<pre width="132">
<tt>        blockType BlockName
+
        blockType BlockName
 
         {
 
         {
 
             attribute-name = attribute-value;
 
             attribute-name = attribute-value;
Line 54: Line 54:  
             attribute-name is attribute-value;
 
             attribute-name is attribute-value;
 
         }
 
         }
</tt>
+
 
 
</pre>
 
</pre>
   Line 128: Line 128:  
Here is an example <i><b>properties block:</b></i>
 
Here is an example <i><b>properties block:</b></i>
 
<pre>
 
<pre>
<b>        properties
+
        properties
 
         {
 
         {
 
             type description = string;
 
             type description = string;
Line 139: Line 139:  
         }
 
         }
   −
</b>
+
 
 
</pre>
 
</pre>
   Line 194: Line 194:  
name of the network. For example:
 
name of the network. For example:
 
<pre>
 
<pre>
<b>        network &quot;Car Starting Example&quot;
+
        network &quot;Car Starting Example&quot;
 
         {
 
         {
 
             format is &quot;BNFormat&quot;;
 
             format is &quot;BNFormat&quot;;
 
         }
 
         }
</b>
+
 
 
</pre>
 
</pre>
   Line 210: Line 210:  
in any order. Node blocks look like this:
 
in any order. Node blocks look like this:
 
<pre>
 
<pre>
<b>        node NodeName
+
        node NodeName
         {    </b>//  node attributes, described later
+
         {    //  node attributes, described later
         <b>}
+
         }
</b>
+
 
 
</pre>
 
</pre>
   Line 222: Line 222:  
these variables, and hence the topology of the network.
 
these variables, and hence the topology of the network.
 
<pre>
 
<pre>
<b>        probability (Node | D1, D2, D3)
+
        probability (Node | D1, D2, D3)
 
         {
 
         {
             </b>//  conditional probability tables
+
             //  conditional probability tables
         <b>}
+
         }
</b>
+
 
 
</pre>
 
</pre>
   Line 259: Line 259:  
In general, an attribute is of the form:
 
In general, an attribute is of the form:
 
<pre>
 
<pre>
<b>        attribute-type is attribute-value;  </b>//  or
+
        attribute-type is attribute-value;  //  or
<b>        attribute-type = attribute-value;
+
        attribute-type = attribute-value;
</b>
+
 
 
</pre>
 
</pre>
   Line 272: Line 272:  
in the March, 1995 issue of <u><i>Communications of the ACM</i></u>.
 
in the March, 1995 issue of <u><i>Communications of the ACM</i></u>.
 
<pre>
 
<pre>
<b>        node Alternator
+
        node Alternator
 
         {
 
         {
 
           name is &quot;Alternator Output Voltage&quot;;
 
           name is &quot;Alternator Output Voltage&quot;;
Line 286: Line 286:  
             MS_cost_fix = 200.00;
 
             MS_cost_fix = 200.00;
 
         }
 
         }
</b>
+
 
 
</pre>
 
</pre>
   Line 306: Line 306:  
For instance, one can declare a ternary variable by
 
For instance, one can declare a ternary variable by
 
<pre>
 
<pre>
<b>        node ThreeState
+
        node ThreeState
 
         {
 
         {
 
             type: discrete[3];
 
             type: discrete[3];
 
         }
 
         }
</b>
+
 
 
</pre>
 
</pre>
   Line 316: Line 316:  
whereas a continuous node would look like
 
whereas a continuous node would look like
 
<pre>
 
<pre>
<b>        node Temperature
+
        node Temperature
 
         {
 
         {
 
             type: continuous;
 
             type: continuous;
 
         }
 
         }
</b>
+
 
 
</pre>
 
</pre>
   Line 354: Line 354:  
three states: &quot;good&quot;, &quot;low&quot; and &quot;none&quot;.
 
three states: &quot;good&quot;, &quot;low&quot; and &quot;none&quot;.
 
<pre>
 
<pre>
<b>        probability(GasGauge | Gas, BatteryPower)
+
        probability(GasGauge | Gas, BatteryPower)
 
         {
 
         {
 
           (0, 0): 0.999, 0.001;
 
           (0, 0): 0.999, 0.001;
Line 363: Line 363:  
           (1, 2): 0.000, 1.000;
 
           (1, 2): 0.000, 1.000;
 
         }
 
         }
</b>
+
 
 
</pre>
 
</pre>
   Line 381: Line 381:  
So the above CPT could have been specified equivalently as:
 
So the above CPT could have been specified equivalently as:
 
<pre>
 
<pre>
<b>        probability(GasGauge | Gas, BatteryPower)
+
        probability(GasGauge | Gas, BatteryPower)
 
         {
 
         {
 
             default: 0.000, 1.000;
 
             default: 0.000, 1.000;
Line 387: Line 387:  
             (0, 0):  0.999, 0.001;
 
             (0, 0):  0.999, 0.001;
 
         }
 
         }
</b>
+
 
 
</pre>
 
</pre>
   Line 413: Line 413:  
earlier:
 
earlier:
 
<pre>
 
<pre>
<b>        probability(GasGauge | Gas, BatteryPower)
+
        probability(GasGauge | Gas, BatteryPower)
 
         {
 
         {
 
             function: type = max;
 
             function: type = max;
Line 423: Line 423:  
             (1, 0): 0.000, 1.000;
 
             (1, 0): 0.000, 1.000;
 
         }
 
         }
</b>
+
 
 
</pre>
 
</pre>
   Line 452: Line 452:     
<blockquote>
 
<blockquote>
identifier [(optional parenthetical argument list)] <br>
+
identifier [(optional parenthetical argument list)]  
{ [optional string of tokens]<br>
+
{ [optional string of tokens]
}<br>
+
}
    
</blockquote>
 
</blockquote>

Navigation menu