pub struct FuzzyControllerBuilder<D: Float, M: Float> { /* private fields */ }Expand description
Builder for fuzzy controller
Implementations§
Source§impl<D: Float, M: Float> FuzzyControllerBuilder<D, M>
impl<D: Float, M: Float> FuzzyControllerBuilder<D, M>
Sourcepub fn add_input(self, variable: LinguisticVariable<D, M>) -> Self
pub fn add_input(self, variable: LinguisticVariable<D, M>) -> Self
Adds an input linguistic variable to the controller.
Sourcepub fn add_output(self, variable: LinguisticVariable<D, M>) -> Self
pub fn add_output(self, variable: LinguisticVariable<D, M>) -> Self
Adds an output linguistic variable to the controller.
Sourcepub fn with_t_norm(self, t_norm: Box<dyn TNorm<M>>) -> Self
pub fn with_t_norm(self, t_norm: Box<dyn TNorm<M>>) -> Self
Sets the T-norm operator for combining rule antecedents with AND.
Sourcepub fn with_s_norm(self, s_norm: Box<dyn SNorm<M>>) -> Self
pub fn with_s_norm(self, s_norm: Box<dyn SNorm<M>>) -> Self
Sets the S-norm operator for combining rule antecedents with OR.
Sourcepub fn add_inputs(self, variables: Vec<LinguisticVariable<D, M>>) -> Self
pub fn add_inputs(self, variables: Vec<LinguisticVariable<D, M>>) -> Self
Adds multiple input variables at once.
Sourcepub fn add_outputs(self, variables: Vec<LinguisticVariable<D, M>>) -> Self
pub fn add_outputs(self, variables: Vec<LinguisticVariable<D, M>>) -> Self
Adds multiple output variables at once.
Sourcepub fn build(self) -> FuzzyController<D, M>
pub fn build(self) -> FuzzyController<D, M>
Builds the fuzzy controller with the configured settings.
Trait Implementations§
Auto Trait Implementations§
impl<D, M> Freeze for FuzzyControllerBuilder<D, M>
impl<D, M> !RefUnwindSafe for FuzzyControllerBuilder<D, M>
impl<D, M> !Send for FuzzyControllerBuilder<D, M>
impl<D, M> !Sync for FuzzyControllerBuilder<D, M>
impl<D, M> Unpin for FuzzyControllerBuilder<D, M>
impl<D, M> !UnwindSafe for FuzzyControllerBuilder<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