init_single_unconstrained

pyoptex.doe.utils.init.init_single_unconstrained(colstart, coords, run, effect_types)[source]

Initializes a run at random. There are three possibilities: ‘continuous’ which is random between (-1, 1), categorical which is a random level, or from coords which selects a random coordinate from coords.

Parameters

colstartnp.array(1d)

The starting column of each factor.

coordslist(np.array(2d) or None)

The coordinates to sample from.

runnp.array(1d)

Output buffer of the function. Also returned at the end.

effect_typesnp.array(1d)

The type of each effect in case no coordinates are specified.

Returns

runnp.array(1d)

The randomly sampled run.