pub struct FuzzyRule<D: Float, M: Float> { /* private fields */ }Expand description
A fuzzy rule expressing IF-THEN logic.
Implementations§
Source§impl<D: Float, M: Float> FuzzyRule<D, M>
impl<D: Float, M: Float> FuzzyRule<D, M>
Sourcepub fn new(
antecedents: Vec<Condition<D, M>>,
operator: RuleOperator,
consequents: Vec<Consequent<D, M>>,
) -> Self
pub fn new( antecedents: Vec<Condition<D, M>>, operator: RuleOperator, consequents: Vec<Consequent<D, M>>, ) -> Self
Creates a new fuzzy rule with default weight of 1.0.
Sourcepub fn with_weight(self, weight: MembershipDegree<M>) -> Self
pub fn with_weight(self, weight: MembershipDegree<M>) -> Self
Sets the weight (importance) of this rule.
Auto Trait Implementations§
impl<D, M> Freeze for FuzzyRule<D, M>where
M: Freeze,
impl<D, M> RefUnwindSafe for FuzzyRule<D, M>where
M: RefUnwindSafe,
D: RefUnwindSafe,
impl<D, M> Send for FuzzyRule<D, M>
impl<D, M> Sync for FuzzyRule<D, M>
impl<D, M> Unpin for FuzzyRule<D, M>
impl<D, M> UnwindSafe for FuzzyRule<D, M>where
M: UnwindSafe,
D: UnwindSafe,
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