def threshold(values, threshold):
values = nominal_values(values)<EOL>return (values < threshold, values >= threshold)<EOL>
Return boolean arrays where a >= and < threshold.

Parameters
----------
values : array-like
    Array of real values.
threshold : float
    Threshold value

Returns
-------
(below, above) : tuple or boolean arrays