[][src]Trait sobol::SobolType

pub trait SobolType: Sized + Display {
    type IT: InternalType;

    pub const MAX_RESOLUTION: usize;

    pub fn render(val: Self::IT) -> Self;
}

The main type parameter for the Sobol iterator. This defines the concrete InternalType to be used internally, as well as other properties necessary for sequence generation.

Associated Types

type IT: InternalType[src]

The unsigned integer type used internally to compute sequence values.

Loading content...

Associated Constants

pub const MAX_RESOLUTION: usize[src]

The maximum number of bits this type can support. By default, this is number of bits in the underlying InternalType, but it may be less in some cases (e.g. floats are limited by the size of their significand).

Loading content...

Required methods

pub fn render(val: Self::IT) -> Self[src]

Converts internal values to those expected by the user. This usually involves casting and, for float values, scaling to the range [0,1).

Loading content...

Implementations on Foreign Types

impl SobolType for f32[src]

SobolType implementation for 32-bit floating-point values

type IT = u32

impl SobolType for f64[src]

SobolType implementation for 64-bit floating-point values

type IT = u64

impl SobolType for u8[src]

SobolType implementation for 8-bit unsigned values

type IT = u8

impl SobolType for u16[src]

SobolType implementation for 16-bit unsigned values

type IT = u16

impl SobolType for u32[src]

SobolType implementation for 32-bit unsigned values

type IT = u32

impl SobolType for u64[src]

SobolType implementation for 64-bit unsigned values

type IT = u64

impl SobolType for u128[src]

SobolType implementation for 128-bit unsigned values

type IT = u128

impl SobolType for i8[src]

SobolType implementation for 8-bit signed values

type IT = u8

impl SobolType for i16[src]

SobolType implementation for 16-bit signed values

type IT = u16

impl SobolType for i32[src]

SobolType implementation for 32-bit signed values

type IT = u32

impl SobolType for i64[src]

SobolType implementation for 64-bit signed values

type IT = u64

impl SobolType for i128[src]

SobolType implementation for 128-bit signed values

type IT = u128

Loading content...

Implementors

Loading content...