function y = BR_U(x)
% BR_U - uniform function
% On input:
%     x (float): input value
% On output:
%     y (float): 0 if x not in [0,1], else, 1
% Call:
%     y = BR_U(0.2);
% Author:
%     T. Henderson
%     UU
%     Winter 2019
%

y = x.*(x>=0&x<=1);
y = 1*(x>=0&x<=1);
