function varargout = discretize(varargin)
%DISCRETIZE  Group numeric data into bins or categories.
%   BINS = discretize(X,EDGES) 
%   [BINS, EDGES] = discretize(X,N) 
%   [BINS, EDGES] = discretize(...,VALUES)       
%   [...] = discretize(...,'IncludedEdge',SIDE)
%   
%   
%   The 'Categorical' flag is not supported
%   
%   Example:
%    
%       x = rand(10,1);
%       bins = discretize(x,0:0.25:1);  % group into 4 bins 
%    
%   See also DISCRETIZE, GPUARRAY, GPUARRAY/RAND.


%   Copyright 2015-2016 The MathWorks, Inc.

% try...catch prevents error being reported by internal
try
    [varargout{1:nargout}] = parallel.internal.flowthrough.discretize(varargin{:});
catch ME
    throw(ME);
end
