TableFactor cleanup
							parent
							
								
									0de114f2bd
								
							
						
					
					
						commit
						e46cd54993
					
				| 
						 | 
					@ -72,9 +72,7 @@ TableFactor::TableFactor(const DiscreteKeys& dkeys,
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
std::vector<double> ComputeLeafOrdering(const DiscreteKeys& dkeys,
 | 
					std::vector<double> ComputeLeafOrdering(const DiscreteKeys& dkeys,
 | 
				
			||||||
                                        const DecisionTreeFactor& dt) {
 | 
					                                        const DecisionTreeFactor& dt) {
 | 
				
			||||||
  gttic_(ComputeLeafOrdering);
 | 
					 | 
				
			||||||
  std::vector<double> probs = dt.probabilities();
 | 
					  std::vector<double> probs = dt.probabilities();
 | 
				
			||||||
  gttoc_(ComputeLeafOrdering);
 | 
					 | 
				
			||||||
  std::vector<double> ordered;
 | 
					  std::vector<double> ordered;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  size_t n = dkeys[0].second;
 | 
					  size_t n = dkeys[0].second;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -171,7 +171,6 @@ class GTSAM_EXPORT TableFactor : public DiscreteFactor {
 | 
				
			||||||
    return apply(f, safe_div);
 | 
					    return apply(f, safe_div);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
  /// Convert into a decisiontree
 | 
					  /// Convert into a decisiontree
 | 
				
			||||||
  DecisionTreeFactor toDecisionTreeFactor() const override;
 | 
					  DecisionTreeFactor toDecisionTreeFactor() const override;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue