doc/classes/BayesNetNode.src/M000039.html in bn4r-0.1.2 vs doc/classes/BayesNetNode.src/M000039.html in bn4r-0.9.0

- old
+ new

@@ -1,23 +1,18 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>get_probability (BayesNetNode)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/bn4r/bn.rb, line 209</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_probability</span>(<span class="ruby-identifier">node_assignment</span> = <span class="ruby-identifier">value</span>, <span class="ruby-identifier">givens_assignments</span> = <span class="ruby-identifier">parents_assignments</span>) -<span class="ruby-comment cmt"># raise &quot;Node must have a value and a givens_assignments, otherwise put&quot; # + &quot;them in function call&quot; if node_assignment.nil? or givens_assignments.nil?</span> - <span class="ruby-comment cmt"># if there's a cached table take the index</span> - <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@table</span>[<span class="ruby-identifier">get_table_index</span>(<span class="ruby-identifier">node_assignment</span>, <span class="ruby-identifier">givens_assignments</span>)] <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@table_is_a_proc</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@table_is_a_proc</span> - <span class="ruby-comment cmt"># if the value is calculated on the fly using a function instead of</span> - <span class="ruby-comment cmt"># a table</span> - <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@table</span>[<span class="ruby-identifier">node_assignment</span>, <span class="ruby-identifier">givens_assignments</span>] - <span class="ruby-keyword kw">end</span></pre> -</body> +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html> +<head> + <title>relations (BayesNetNode)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/bn4r/bn.rb, line 207</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">relations</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@relations</span> + <span class="ruby-keyword kw">end</span></pre> +</body> </html> \ No newline at end of file