piglot.optimiser.boundary_check

boundary_check(arg, bounds)[source]

Check if the values are within the bounds and correct them if not.

Parameters

argarray

Values to check.

boundsarray

Lower and upper bounds.

Returns

array

Corrected values.