Struct adapton_lab::labdef::SampleParams [] [src]

pub struct SampleParams {
    pub input_seeds: Vec<usize>,
    pub generate_params: GenerateParams,
    pub demand: usize,
    pub validate_output: bool,
    pub change_batch_size: usize,
    pub reflect_trace: bool,
    pub reflect_dcg: bool,
}

Parameters for collecting a single sample. In addition to these parameters, the experiment maintains a Rng based on the input_seeds, below; this Rng is given to Edit::edit to generate psuedo-random edits, in batches. For each engine, this Rng is sequenced across successive samples. Given an input_seeds vector, there is one unique Rng sequence for each engine's sequence of samples.

Fields

We convert this seed into a random-number-generator before generating and editing.

Other parameters for generating the input.

demand: For lazy algorithms, the number of output elements to force, e.g., by producing a vector of output data. Eager algorithms ignore this parameter (they always produce all of their output).

Whether to validate the output after each computation using the naive and DCG engines

Size of each batch of changes.

Reflect the trace (See adapton::engine::reflect::trace::Trace).

Reflect the DCG (See adapton::engine::reflect::DCG), including its values (See adapton::engine::reflect_val).

Trait Implementations

impl Clone for SampleParams
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SampleParams
[src]

Formats the value using the given formatter.