pub struct RGenerator { /* private fields */ }Implementations§
Source§impl RGenerator
impl RGenerator
pub fn new() -> Self
pub fn set_seed(self, seed: u16) -> Self
pub fn generate_uniform<T1: ToPrimitive + Debug, T2: ToPrimitive + Debug>( &self, len: T1, (lower_bound, upper_bound): (T2, T2), ) -> Vec<f64>
pub fn generate_uniform_matrix<T1: ToPrimitive + Debug, T2: ToPrimitive + Debug, T3: ToPrimitive + Debug + Clone>( &self, num_rows: T1, num_columns: T2, (lower_bound, upper_bound): (T3, T3), ) -> DMatrix<f64>
pub fn generate_errors<T1: ToPrimitive + Debug, T2: ToPrimitive + Debug + Clone, T3: ToPrimitive + Debug>( &self, len: T1, (lower_bound, upper_bound): (T2, T2), fuzz_amount: T3, ) -> Vec<f64>
Trait Implementations§
Source§impl Clone for RGenerator
impl Clone for RGenerator
Source§fn clone(&self) -> RGenerator
fn clone(&self) -> RGenerator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RGenerator
impl Debug for RGenerator
Source§impl Default for RGenerator
impl Default for RGenerator
Source§fn default() -> RGenerator
fn default() -> RGenerator
Returns the “default value” for a type. Read more
impl Copy for RGenerator
Auto Trait Implementations§
impl Freeze for RGenerator
impl RefUnwindSafe for RGenerator
impl Send for RGenerator
impl Sync for RGenerator
impl Unpin for RGenerator
impl UnwindSafe for RGenerator
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§fn to_subset_unchecked(&self) -> SS
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.