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,
}Expand description
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: GenerateParamsOther parameters for generating the input.
demand: usizedemand: 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: boolWhether to validate the output after each computation using the naive and DCG engines
change_batch_size: usizeSize of each batch of changes.
reflect_trace: boolReflect the trace (See adapton::engine::reflect::trace::Trace).
reflect_dcg: boolReflect the DCG (See adapton::engine::reflect::DCG), including
its values (See adapton::engine::reflect_val).
Trait Implementations§
Source§impl Clone for SampleParams
impl Clone for SampleParams
Source§fn clone(&self) -> SampleParams
fn clone(&self) -> SampleParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more