pub enum DesignKind {
Factorial,
Zip,
Random {
samples: usize,
},
LatinHypercube {
samples: usize,
},
Table {
text: String,
},
}Expand description
Rule that combines the factors of a block.
Variants§
Factorial
Every combination of levels. The first factor varies slowest and the last fastest.
Zip
Levels paired by position, so config i takes level i of every factor.
Random
samples configs, each factor’s value drawn independently from its whole domain.
LatinHypercube
samples configs in a Latin hypercube, each factor’s domain split into samples strata.
Every stratum of a continuous factor holds one sample, at a random point inside it. A stratum of a factor
with m levels takes the lowest level it covers, and each level is then taken samples / m times, rounded
down or up. The levels such a factor takes therefore depend on samples alone, and the design seed decides
only which config takes each level.
Table
One config per row of a comma-separated table, whose header lists parameter ids or action.<name>.
crate::explore::design_csv reads the table.