pub struct BitStarConfig {
pub batch_size: usize,
pub gamma: f64,
pub k_nearest: Option<f64>,
pub max_radius: f64,
}Expand description
Settings for BitStar.
Fields§
§batch_size: usizeThe number of samples per batch, m in the paper. At least one.
gamma: f64The connection radius constant: with q states in the graph (vertices plus unconnected
samples, minus the newest batch), states within gamma * (ln q / q)^(1/d) are
neighbors. Asymptotic optimality needs gamma above
BitStarConfig::gamma_lower_bound. Positive and finite. Unused when
BitStarConfig::k_nearest is set.
k_nearest: Option<f64>When Some(k_constant), the neighbors are the ceil(k_constant * ln q) nearest states
instead (eq. 2 of the paper); asymptotic optimality needs k_constant above
BitStarConfig::k_constant_lower_bound. Positive and finite.
max_radius: f64Upper bound on the connection radius and on every edge, r_max in the paper. Positive;
may be infinite.
Implementations§
Source§impl BitStarConfig
impl BitStarConfig
Sourcepub const fn new(gamma: f64) -> Self
pub const fn new(gamma: f64) -> Self
A radius-based config with 100 samples per batch and no edge-length cap.
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 BIT* is asymptotically optimal (Gammell et al. 2020,
eq. 1): (2 (1 + 1/d) free_volume / zeta_d)^(1/d), the RRT* bound.
The paper uses the smaller of the free volume and the informed-set volume, which shrinks the radius once a solution exists; using the free volume throughout keeps the bound admissible at the price of larger neighborhoods.
Sourcepub fn k_constant_lower_bound(dimension: usize) -> f64
pub fn k_constant_lower_bound(dimension: usize) -> f64
The smallest k-nearest constant for which BIT* is asymptotically optimal (Gammell et
al. 2020, eq. 2): e (1 + 1/d).