pub fn verdict_bands_sampled(
entry: &MachineEntry,
cfg: &Config,
bounds: &[(String, f64, f64)],
samples: usize,
seed: u64,
) -> Result<Vec<Band>, ConfigError>Expand description
The verdicts of the cycle with error bands that count interactions: the cycle is run with the config as
it is and samples times with every parameter of bounds somewhere between its bounds, all at once. A
band is the envelope of these runs, and Band::share says in how many of them the check passed.
The values are a Latin hypercube: the range of each parameter is cut into samples equal parts, each
part is used in exactly one run (at a random place inside it), and each parameter has its parts in a
random order of its own. So every parameter is spread evenly over its range however few the runs, and
reaches to within a samples-th of the range of both bounds. Pseudo-random from seed: the same call
gives the same bands.
What it does not do: put a parameter exactly on a bound (verdict_bands does), or search for the worst
corner (verdict_worst does). With n parameters there are 2^n corners, and a few dozen runs meet none of
them: a check that fails only with several values near their bounds at once can pass every sample.