[][src]Struct quasi_rd::Sequence

pub struct Sequence { /* fields omitted */ }

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

impl Clone for Sequence[src]

impl Debug for Sequence[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.