[−][src]Struct quasi_rd::Sequence
A d-dimensional quasirandom Rd sequence.
Successive samples are generated dimension by dimension, so every d
outputs generated constitute one individual sample from the sequence.
Methods
impl Sequence
[src]
pub fn new(dimensionality: usize) -> Self
[src]
Creates a new quasirandom Rd sequence.
pub fn new_with_offset(dimensionality: usize, sample: u64) -> Self
[src]
Creates a new sequence and specifies the starting sample offset.
pub fn seek(&mut self, sample: u64)
[src]
Seeks to the given sample offset.
pub fn next_u64(&mut self) -> u64
[src]
Generates the next sample dimension as a [0, 1) fixed-point value.
pub fn next_u32(&mut self) -> u32
[src]
Generates the next sample dimension as a [0, 1) fixed-point value.
pub fn next_f64(&mut self) -> f64
[src]
Generates the next sample dimension as a [0, 1) floating-point value.
pub fn next_f32(&mut self) -> f32
[src]
Generates the next sample dimension as a [0, 1) floating-point value.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnwindSafe for Sequence
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,