pub struct FmtStarConfig {
pub gamma: f64,
}Expand description
Settings for FmtStar.
Fields§
§gamma: f64The connection radius constant: with n nodes in d dimensions, nodes within
gamma * (ln n / n)^(1/d) are neighbors.
Asymptotic optimality needs gamma above FmtStarConfig::gamma_lower_bound.
Positive and finite.
Implementations§
Source§impl FmtStarConfig
impl FmtStarConfig
Sourcepub fn gamma_lower_bound(dimension: usize, free_volume: f64) -> f64
pub fn gamma_lower_bound(dimension: usize, free_volume: f64) -> f64
The smallest gamma for which FMT* is asymptotically optimal (Janson et al. 2015,
Theorem 4.1, with eta = 0): 2 (1/d)^(1/d) (free_volume / zeta_d)^(1/d), where
zeta_d is the volume of the unit d-ball.
The theorem needs (1 + eta) times this for some eta > 0, so pick gamma somewhat
above it. free_volume is the Lebesgue measure of the obstacle-free space; the volume of
the sampling box is a safe over-estimate.
Trait Implementations§
Source§impl Clone for FmtStarConfig
impl Clone for FmtStarConfig
impl Copy for FmtStarConfig
Source§impl Debug for FmtStarConfig
impl Debug for FmtStarConfig
Source§impl PartialEq for FmtStarConfig
impl PartialEq for FmtStarConfig
impl StructuralPartialEq for FmtStarConfig
Auto Trait Implementations§
impl Forget for FmtStarConfig
impl Freeze for FmtStarConfig
impl Move for FmtStarConfig
impl RefUnwindSafe for FmtStarConfig
impl Send for FmtStarConfig
impl Sync for FmtStarConfig
impl Unpin for FmtStarConfig
impl UnsafeUnpin for FmtStarConfig
impl UnwindSafe for FmtStarConfig
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