sample_random

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

Samples a new run by taking a random run from the design 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.