function value = i4vec_mean ( n, x )

%*****************************************************************************80
%
%% I4VEC_MEAN_I4 returns the I4 mean of an I4VEC.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    05 March 2017
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the vector.
%
%    integer X(N), the vector whose mean is desired.
%
%  Output:
%
%    Output, integer MEAN_I4, the rounded mean of the vector entries.
%
  value = round ( sum ( x(1:n) ) / n );

  return
end
