sample_last

pyoptex.doe.cost_optimal.codex.sample.sample_last(state, params)[source]

Samples a new run by taking the last run and randomly changing one coordinate.

Parameters

stateState

The state from which to sample.

paramsParameters

The simulation parameters.

Returns

runnp.array(1d)

The newly sampled run.