pub struct VariableFrequency { /* private fields */ }
Implementations§
Source§impl VariableFrequency
impl VariableFrequency
pub fn new() -> Self
Sourcepub fn analyze_triplets(
&mut self,
triplets: &[(TripletVar, TripletVar, TripletVar)],
)
pub fn analyze_triplets( &mut self, triplets: &[(TripletVar, TripletVar, TripletVar)], )
Analyze triplets and build frequency map
Sourcepub fn get_most_frequent_unassigned(
&self,
assignments: &HashMap<i32, bool>,
original_vars_only: bool,
max_original_var: i32,
) -> Option<i32>
pub fn get_most_frequent_unassigned( &self, assignments: &HashMap<i32, bool>, original_vars_only: bool, max_original_var: i32, ) -> Option<i32>
Get the most frequent unassigned variable
Sourcepub fn get_triplet_frequency(
&self,
triplet: &(TripletVar, TripletVar, TripletVar),
) -> usize
pub fn get_triplet_frequency( &self, triplet: &(TripletVar, TripletVar, TripletVar), ) -> usize
Get the frequency score for a triplet
Sourcepub fn get_potential_deduction_score(
&self,
triplet: &(TripletVar, TripletVar, TripletVar),
) -> usize
pub fn get_potential_deduction_score( &self, triplet: &(TripletVar, TripletVar, TripletVar), ) -> usize
Get the potential deduction score for a triplet
Trait Implementations§
Source§impl Debug for VariableFrequency
impl Debug for VariableFrequency
Source§impl Default for VariableFrequency
impl Default for VariableFrequency
Source§fn default() -> VariableFrequency
fn default() -> VariableFrequency
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VariableFrequency
impl RefUnwindSafe for VariableFrequency
impl Send for VariableFrequency
impl Sync for VariableFrequency
impl Unpin for VariableFrequency
impl UnwindSafe for VariableFrequency
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more