function value = r8vec_mean ( n, x )

%*****************************************************************************80
%
%% r8vec_mean() returns the mean of an R8VEC.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the vector.
%
%    real 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
