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
input_seeds: Vec<usize>
We convert this seed into a random-number-generator before generating and editing.
generate_params: GenerateParams
Other parameters for generating the input.
demand: usize
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).
validate_output: bool
Whether to validate the output after each computation using the naive and DCG engines
change_batch_size: usize
Size of each batch of changes.
reflect_trace: bool
Reflect the trace (See adapton::engine::reflect::trace::Trace
).
reflect_dcg: bool
Reflect the DCG (See adapton::engine::reflect::DCG
), including
its values (See adapton::engine::reflect_val
).
Trait Implementations
impl Clone for SampleParams
[src]
fn clone(&self) -> SampleParams
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more