function validateAlpha(alpha, methodName)
%VALIDATEALPHA validate the Alpha NV pair of several methods
%   VALIDATEALPHA(ALPHA, METHODNAME) validates ALPHA, a scalar in (0,1) of
%   a confidence level, for method METHODNAME.

%   Copyright 2022 The MathWorks, Inc.
validateattributes(alpha, {'double', 'single'}, {'real', 'nonnan', 'scalar', '>' 0, '<', 1, 'nonsparse'}, ...
    methodName, 'Alpha');
end