pub struct SheafConfig {
pub model: EvolutionMode,
pub r0: f64,
pub alpha: f64,
pub nonlin: NonlinearFn,
pub nonlin_k: f64,
}Expand description
Configuration for the sheaf’s restriction map model.
Fields§
§model: EvolutionMode§r0: f64Base restriction map magnitude.
alpha: f64Linear scaling coefficient.
nonlin: NonlinearFnNonlinear function selector.
nonlin_k: f64Steepness parameter for nonlinear functions.
Implementations§
Source§impl SheafConfig
impl SheafConfig
Sourcepub fn eval_restriction(&self, flow_energy: f64) -> f64
pub fn eval_restriction(&self, flow_energy: f64) -> f64
Evaluate the restriction map for a given flow energy.
Sourcepub fn static_sheaf(r0: f64) -> Self
pub fn static_sheaf(r0: f64) -> Self
Create a static sheaf config.
Sourcepub fn nonlinear(r0: f64, nonlin: NonlinearFn, k: f64) -> Self
pub fn nonlinear(r0: f64, nonlin: NonlinearFn, k: f64) -> Self
Create a nonlinear evolving sheaf config.
Trait Implementations§
Source§impl Clone for SheafConfig
impl Clone for SheafConfig
Source§fn clone(&self) -> SheafConfig
fn clone(&self) -> SheafConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SheafConfig
Source§impl Debug for SheafConfig
impl Debug for SheafConfig
Source§impl Default for SheafConfig
impl Default for SheafConfig
Source§impl PartialEq for SheafConfig
impl PartialEq for SheafConfig
Source§fn eq(&self, other: &SheafConfig) -> bool
fn eq(&self, other: &SheafConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SheafConfig
Auto Trait Implementations§
impl Freeze for SheafConfig
impl RefUnwindSafe for SheafConfig
impl Send for SheafConfig
impl Sync for SheafConfig
impl Unpin for SheafConfig
impl UnsafeUnpin for SheafConfig
impl UnwindSafe for SheafConfig
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,
impl<T> Scalar for T
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.