function value = i4vec_mean ( n, x )

%*****************************************************************************80
%
%% I4VEC_MEAN returns the mean of an I4VEC.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    02 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the vector.
%
%    integer X(N), the vector whose mean is desired.
%
%  Output:
%
%    real VALUE, the mean, or average,
%    of the vector entries.
%
  value = sum ( x(1:n) ) / n;

  return
end
