Skip to main content

Module factor

Module factor 

Source
Expand description

Factors of a sweep, as a spec writes them and as a plan resolves them.

A factor is one parameter, or the tick of one action, that a sweep varies. Each value it takes is a level. A random or Latin hypercube design samples its factors, and can draw a factor’s value from a whole range instead of a list of levels.

Structs§

Factor
A factor resolved against a model’s parameters and a spec’s actions, with every level checked.
FactorSpec
A factor as a spec writes it.

Enums§

FactorDomain
Values a resolved factor can take.
FactorError
A factor that cannot be resolved against a model’s parameters and a spec’s actions.
FactorLevel
One level of a resolved factor.
FactorSlot
Part of a config a resolved factor writes.
FactorTarget
Part of a config that a factor varies, identified by the id or name that a spec uses.
LevelSpec
Levels of a factor, as a spec writes them.
LevelSpecError
Text that cannot be parsed as a LevelSpec.
RangeError
A range that yields no values.

Constants§

MAX_LEVELS
Maximum number of levels in one factor.

Functions§

inclusive_steps
Returns min + i * step for every i from 0 up to the last value not past max.