Infrared
Loading...
Searching...
No Matches
infrared.infrared.PFClusterTree Class Reference

Cluster tree for partition function calculation and sampling. More...

Inheritance diagram for infrared.infrared.PFClusterTree:
Collaboration diagram for infrared.infrared.PFClusterTree:

Public Member Functions

 __init__ (self, model, td)
 
 sample (self)
 
 resample (self, variables, assignment)
 
- Public Member Functions inherited from infrared.infrared.ClusterTreeBase
 __init__ (self, model, td, EvaluationAlgebra)
 
 evaluate (self)
 
 is_consistent (self)
 
 construct_cluster_tree (self, domains, td)
 Construct the cluster tree object of the C++ engine.
 
 get_bag_assignments (self)
 Get assignments of functions and constraints to the bags.
 
 find_all_bags (self, bvars)
 Get the indices of all bags that contain a set of variables.
 
 find_bag (self, bvars)
 Find a bag that contains a set of variables.
 
 assign_to_bags (self, constraints)
 assign constraints or functions to bags
 
 assign_to_all_bags (self, constraints)
 assign constraints or functions to all possible bags
 

Protected Attributes

 _ct
 
- Protected Attributes inherited from infrared.infrared.ClusterTreeBase
 _model
 
 _td
 
 _EA
 
 _bagsets
 

Detailed Description

Cluster tree for partition function calculation and sampling.

Constructor & Destructor Documentation

◆ __init__()

infrared.infrared.PFClusterTree.__init__ (   self,
  model,
  td 
)

Reimplemented from infrared.infrared.ClusterTreeBase.

Member Function Documentation

◆ resample()

infrared.infrared.PFClusterTree.resample (   self,
  variables,
  assignment 
)

◆ sample()

infrared.infrared.PFClusterTree.sample (   self)

Member Data Documentation

◆ _ct

infrared.infrared.PFClusterTree._ct
protected

The documentation for this class was generated from the following file: