[][src]Struct nikisas_test::domain::UniformSample

pub struct UniformSample<F: FloatExt> { /* fields omitted */ }

Uniformly samples values in given interval. This should be primarily used for determining errors on the domain.

Implementations

impl<F: FloatExt> UniformSample<F>[src]

pub fn with_count(low: F, high: F, count: usize) -> Self[src]

Creates new iterator. The number of sampled values is fixed to given count.

pub fn with_fraction(low: F, high: F, fraction: f32) -> Self[src]

Creates new iterator. The number of samples is determined by the total number of machine numbers within given interval. Be careful with intervals crossing zeros, there is a lot of machine numbers around zeros, and the number of sampled values might become infeasible in such case. The fraction argument must be a number between zero and one.

Trait Implementations

impl<F: FloatExt> Iterator for UniformSample<F>[src]

type Item = F

The type of the elements being iterated over.

Auto Trait Implementations

impl<F> RefUnwindSafe for UniformSample<F> where
    F: RefUnwindSafe,
    <F as SampleUniform>::Sampler: RefUnwindSafe

impl<F> Send for UniformSample<F> where
    F: Send,
    <F as SampleUniform>::Sampler: Send

impl<F> Sync for UniformSample<F> where
    F: Sync,
    <F as SampleUniform>::Sampler: Sync

impl<F> Unpin for UniformSample<F> where
    F: Unpin,
    <F as SampleUniform>::Sampler: Unpin

impl<F> UnwindSafe for UniformSample<F> where
    F: UnwindSafe,
    <F as SampleUniform>::Sampler: UnwindSafe

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<F, I> Domain<F> for I where
    F: FloatExt,
    I: Iterator<Item = F>, 
[src]

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,