pub struct UniformBox<const N: usize> { /* private fields */ }Expand description
Samples uniformly from the axis-aligned box [lower, upper) in R^N.
Implementations§
Trait Implementations§
Source§impl<const N: usize> Clone for UniformBox<N>
impl<const N: usize> Clone for UniformBox<N>
impl<const N: usize> Copy for UniformBox<N>
Source§impl<const N: usize> Debug for UniformBox<N>
impl<const N: usize> Debug for UniformBox<N>
Source§impl<const N: usize> PartialEq for UniformBox<N>
impl<const N: usize> PartialEq for UniformBox<N>
Source§impl<const N: usize> Sampler<[f64; N]> for UniformBox<N>
impl<const N: usize> Sampler<[f64; N]> for UniformBox<N>
Source§fn sample_informed<Sp, R>(
&mut self,
space: &Sp,
rng: &mut R,
start: &[f64; N],
goal: &[f64; N],
max_cost: f64,
) -> Option<[f64; N]>
fn sample_informed<Sp, R>( &mut self, space: &Sp, rng: &mut R, start: &[f64; N], goal: &[f64; N], max_cost: f64, ) -> Option<[f64; N]>
Samples the ProlateHyperspheroid with foci start and goal and transverse diameter
max_cost, rejecting samples outside the box, which is uniform over the intersection.
Returns None without drawing when space is not
Euclidean, the set is degenerate, or its volume is at least
the box volume (then rejection from the box accepts more often). Returns None after
INFORMED_BOX_ATTEMPTS samples outside the box, which happens when the set reaches
far out of the box.
impl<const N: usize> StructuralPartialEq for UniformBox<N>
Auto Trait Implementations§
impl<const N: usize> Forget for UniformBox<N>
impl<const N: usize> Freeze for UniformBox<N>
impl<const N: usize> Move for UniformBox<N>
impl<const N: usize> RefUnwindSafe for UniformBox<N>
impl<const N: usize> Send for UniformBox<N>
impl<const N: usize> Sync for UniformBox<N>
impl<const N: usize> Unpin for UniformBox<N>
impl<const N: usize> UnsafeUnpin for UniformBox<N>
impl<const N: usize> UnwindSafe for UniformBox<N>
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