pub struct AllometricBranchLaw {
pub gamma: f64,
pub wbe_radius_exp: f64,
pub wbe_length_exp: f64,
}Expand description
Botanical morphogenesis allometric scaling laws and xylem transpiration hydraulics.
Fields§
§gamma: f64Allometric branching exponent $\gamma \in [2.0, 3.0]$ (Murray’s Law default: 2.49).
wbe_radius_exp: f64West-Brown-Enquist (WBE) radius scaling exponent $a \approx 1/3$.
wbe_length_exp: f64West-Brown-Enquist (WBE) length scaling exponent $b \approx 2/3$.
Implementations§
Source§impl AllometricBranchLaw
impl AllometricBranchLaw
Sourcepub fn child_radii_from_split(
&self,
parent_radius: f64,
split_ratio: f64,
) -> (f64, f64)
pub fn child_radii_from_split( &self, parent_radius: f64, split_ratio: f64, ) -> (f64, f64)
Computes child branch radii given a parent radius and split ratio $\eta \in [0.0, 1.0]$.
$$r_{\text{parent}}^\gamma = r_{\text{child},1}^\gamma + r_{\text{child},2}^\gamma$$
Sourcepub fn verify_da_vinci_conservation(
&self,
parent_radius: f64,
child_radii: &[f64],
) -> f64
pub fn verify_da_vinci_conservation( &self, parent_radius: f64, child_radii: &[f64], ) -> f64
Verifies Da Vinci / Murray conservation residual: $|r_{\text{parent}}^\gamma - \sum r_{\text{child}}^\gamma|$.
Trait Implementations§
Source§impl Clone for AllometricBranchLaw
impl Clone for AllometricBranchLaw
impl Copy for AllometricBranchLaw
Source§impl Debug for AllometricBranchLaw
impl Debug for AllometricBranchLaw
Source§impl Default for AllometricBranchLaw
impl Default for AllometricBranchLaw
Source§impl PartialEq for AllometricBranchLaw
impl PartialEq for AllometricBranchLaw
impl StructuralPartialEq for AllometricBranchLaw
Auto Trait Implementations§
impl Freeze for AllometricBranchLaw
impl RefUnwindSafe for AllometricBranchLaw
impl Send for AllometricBranchLaw
impl Sync for AllometricBranchLaw
impl Unpin for AllometricBranchLaw
impl UnsafeUnpin for AllometricBranchLaw
impl UnwindSafe for AllometricBranchLaw
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