pub enum BalancingCombine {
SumOfSquares,
WeightedSum {
w_force: f64,
w_xi: f64,
},
}Expand description
Channel-combination strategy for the dual balancing residual.
SumOfSquares is the default and most conservative: treats both
channels as equally important and produces the Euclidean norm.
WeightedSum allows the caller to bias one channel more — for
example, weighting r_F higher during stance and r_ξ higher
during swing.
Variants§
SumOfSquares
sqrt(r_F² + r_ξ²) — Euclidean combination, equal weights.
WeightedSum
sqrt(w_F · r_F² + w_xi · r_ξ²) — weighted Euclidean.
Both weights must be non-negative. A zero weight suppresses
the corresponding channel; typical values are w_F = 1.0,
w_xi = 1.0 for parity with SumOfSquares.
Trait Implementations§
Source§impl Clone for BalancingCombine
impl Clone for BalancingCombine
Source§fn clone(&self) -> BalancingCombine
fn clone(&self) -> BalancingCombine
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 BalancingCombine
impl Debug for BalancingCombine
Source§impl PartialEq for BalancingCombine
impl PartialEq for BalancingCombine
impl Copy for BalancingCombine
impl StructuralPartialEq for BalancingCombine
Auto Trait Implementations§
impl Freeze for BalancingCombine
impl RefUnwindSafe for BalancingCombine
impl Send for BalancingCombine
impl Sync for BalancingCombine
impl Unpin for BalancingCombine
impl UnsafeUnpin for BalancingCombine
impl UnwindSafe for BalancingCombine
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