pub enum CombinationRule {
Arithmetic,
Geometric,
LorentzBerthelot,
FenderHalsey,
}Expand description
Combination rules for mixing epsilon and sigma values
Variants§
Arithmetic
Arithmetic mean on both epsilon and sigma.
Geometric
Geometric mean on both epsilon and sigma.
LorentzBerthelot
The Lotentz-Berthelot combination rule (geometric mean on epsilon, arithmetic mean on sigma).
FenderHalsey
The Fender-Halsey combination rule (harmonic mean on epsilon, arithmetic mean on sigma).
Implementations§
Source§impl CombinationRule
impl CombinationRule
Sourcepub fn mix(&self, epsilons: (f64, f64), sigmas: (f64, f64)) -> (f64, f64)
pub fn mix(&self, epsilons: (f64, f64), sigmas: (f64, f64)) -> (f64, f64)
Combines epsilon and sigma pairs using the selected combination rule
Sourcepub fn mix_epsilons(&self, epsilons: (f64, f64)) -> f64
pub fn mix_epsilons(&self, epsilons: (f64, f64)) -> f64
Combine epsilon values using the selected combination rule
Sourcepub fn mix_sigmas(&self, sigmas: (f64, f64)) -> f64
pub fn mix_sigmas(&self, sigmas: (f64, f64)) -> f64
Combine sigma values using the selected combination rule
Trait Implementations§
Source§impl Clone for CombinationRule
impl Clone for CombinationRule
Source§fn clone(&self) -> CombinationRule
fn clone(&self) -> CombinationRule
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 CombinationRule
impl Debug for CombinationRule
Source§impl PartialEq for CombinationRule
impl PartialEq for CombinationRule
impl Copy for CombinationRule
impl Eq for CombinationRule
impl StructuralPartialEq for CombinationRule
Auto Trait Implementations§
impl Freeze for CombinationRule
impl RefUnwindSafe for CombinationRule
impl Send for CombinationRule
impl Sync for CombinationRule
impl Unpin for CombinationRule
impl UnsafeUnpin for CombinationRule
impl UnwindSafe for CombinationRule
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.