| 
									
										
										
										
											2012-09-15 06:14:37 +08:00
										 |  |  | function bayesTree = thinBayesTree(depth, width)
 | 
					
						
							|  |  |  |     import gtsam.* | 
					
						
							|  |  |  |     bayesNet = thinTreeBayesNet(depth, width); | 
					
						
							| 
									
										
										
										
											2021-03-11 04:58:12 +08:00
										 |  |  |     fg = GaussianFactorGraph(bayesNet); | 
					
						
							|  |  |  |     bayesTree = fg.eliminateMultifrontal(); | 
					
						
							| 
									
										
										
										
											2012-09-15 06:14:37 +08:00
										 |  |  | end |