pub struct Builder<F, V>{ /* private fields */ }Expand description
Builder for the generator.
Implementations§
Source§impl<V, F> Builder<F, V>
impl<V, F> Builder<F, V>
Sourcepub fn with_radius(radius: F, poisson_type: Type) -> Self
pub fn with_radius(radius: F, poisson_type: Type) -> Self
New Builder with type of distribution and radius specified. The radius should be ]0, √2 / 2]
Sourcepub fn with_relative_radius(relative: F, poisson_type: Type) -> Self
pub fn with_relative_radius(relative: F, poisson_type: Type) -> Self
New Builder with type of distribution and relative radius specified. The relative radius should be ]0, 1]
Sourcepub fn with_samples(samples: usize, relative: F, poisson_type: Type) -> Self
pub fn with_samples(samples: usize, relative: F, poisson_type: Type) -> Self
New Builder with type of distribution, approximate amount of samples and relative radius specified. The amount of samples should be larger than 0. The relative radius should be [0, 1]. For non-perioditic this is supported only for 2, 3 and 4 dimensional generation. For perioditic this is supported up to 8 dimensions.
Sourcepub fn poisson_type(&self) -> Type
pub fn poisson_type(&self) -> Type
Returns the type of the generator.
Trait Implementations§
impl<F, V> StructuralPartialEq for Builder<F, V>
Auto Trait Implementations§
impl<F, V> Freeze for Builder<F, V>where
F: Freeze,
impl<F, V> RefUnwindSafe for Builder<F, V>where
F: RefUnwindSafe,
V: RefUnwindSafe,
impl<F, V> Send for Builder<F, V>
impl<F, V> Sync for Builder<F, V>
impl<F, V> Unpin for Builder<F, V>
impl<F, V> UnwindSafe for Builder<F, V>where
F: UnwindSafe,
V: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.