pub enum QuantifierMode {
Hard,
Smooth {
temperature: f64,
},
Probabilistic,
}Expand description
Configuration for soft differentiable quantifiers.
Provides smooth approximations of logical quantifiers:
- ∃ (exists): At least one element is true
- ∀ (forall): All elements are true
Variants§
Hard
Hard quantifiers using max/min (non-differentiable)
Smooth
Soft using smooth approximations (log-sum-exp for max)
Probabilistic
Probabilistic interpretation (1 - ∏(1-x) for ∃)
Trait Implementations§
Source§impl Clone for QuantifierMode
impl Clone for QuantifierMode
Source§fn clone(&self) -> QuantifierMode
fn clone(&self) -> QuantifierMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QuantifierMode
impl Debug for QuantifierMode
Source§impl Default for QuantifierMode
impl Default for QuantifierMode
impl Copy for QuantifierMode
Auto Trait Implementations§
impl Freeze for QuantifierMode
impl RefUnwindSafe for QuantifierMode
impl Send for QuantifierMode
impl Sync for QuantifierMode
impl Unpin for QuantifierMode
impl UnwindSafe for QuantifierMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more