pub struct FuzzySet<D: Float, M: Float> { /* private fields */ }Expand description
A fuzzy set associates a linguistic term with a membership function.
Implementations§
Source§impl<D: Float, M: Float> FuzzySet<D, M>
impl<D: Float, M: Float> FuzzySet<D, M>
Sourcepub fn new(
name: impl Into<String>,
membership_fn: Box<dyn MembershipFunction<D, M>>,
) -> Self
pub fn new( name: impl Into<String>, membership_fn: Box<dyn MembershipFunction<D, M>>, ) -> Self
Creates a new fuzzy set with a given name and membership function.
Sourcepub fn evaluate(&self, value: D) -> MembershipDegree<M>
pub fn evaluate(&self, value: D) -> MembershipDegree<M>
Evaluates the membership degree for a given domain value.
Auto Trait Implementations§
impl<D, M> Freeze for FuzzySet<D, M>
impl<D, M> !RefUnwindSafe for FuzzySet<D, M>
impl<D, M> !Send for FuzzySet<D, M>
impl<D, M> !Sync for FuzzySet<D, M>
impl<D, M> Unpin for FuzzySet<D, M>
impl<D, M> !UnwindSafe for FuzzySet<D, M>
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