pub struct Random<F: Float, R: Rng> { /* private fields */ }Expand description
The Random design consists in drawing samples randomly.
Implementations§
Source§impl<F: Float> Random<F, Xoshiro256Plus>
impl<F: Float> Random<F, Xoshiro256Plus>
Source§impl<F: Float, R: Rng> Random<F, R>
impl<F: Float, R: Rng> Random<F, R>
Sourcepub fn new_with_rng(
xlimits: &ArrayBase<impl Data<Elem = F>, Ix2>,
rng: R,
) -> Self
pub fn new_with_rng( xlimits: &ArrayBase<impl Data<Elem = F>, Ix2>, rng: R, ) -> Self
Constructor given a design space given a (nx, 2) matrix [[lower bound, upper bound], …] and a random generator for reproducibility
Panics if xlimits number of columns is different from 2.
Trait Implementations§
Auto Trait Implementations§
impl<F, R> Freeze for Random<F, R>
impl<F, R> RefUnwindSafe for Random<F, R>where
F: RefUnwindSafe,
impl<F, R> Send for Random<F, R>
impl<F, R> Sync for Random<F, R>
impl<F, R> Unpin for Random<F, R>
impl<F, R> UnsafeUnpin for Random<F, R>
impl<F, R> UnwindSafe for Random<F, R>where
F: RefUnwindSafe,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more