run

fun run(standard: Solution, alternatives: List<Solution>, sampleOneMore: (InputMap) -> Solution, merge: (Solution, Solution) -> Solution): StandardComparisonResult(source)

Runs the fully-sequential comparison. standard and each of the alternatives must already carry at least n0 replications. sampleOneMore is invoked to obtain one additional replication for a given point (the returned Solution is for that point with one more observation, not the merged total) — the procedure merges it internally via the supplied merge function so that callers control how accumulation happens.

Return

the StandardComparisonResult

Parameters

standard

the standard system (COMPASS center x*)

alternatives

the competing systems (the neighbors of x*); may be empty, in which case the standard is trivially best

sampleOneMore

obtains one more replication for the given point

merge

merges an accumulated solution with a fresh single-replication observation