detect_block_end_from_start

pyoptex.doe.cost_optimal.codex.formulas.detect_block_end_from_start(groups, start)[source]

Detects the end of the block given the start of the block. A block is defined as a consecutive series of the same number.

Note

The block is assumed to be sorted.

Parameters

groupsnp.array(1d)

The array to detect blocks from

startint

The start run of the block

Returns

endint

The last index (excluded) of the block.