function mean = i4row_mean ( m, n, a )

%*****************************************************************************80
%
%% i4row_mean() returns the means of the rows of an I4ROW.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the number of rows and columns of data.
%
%    integer A(M,N), the array.
%
%  Output:
%
%    real MEAN(M), the mean of each row.
%
  for i = 1 : m
    mean(i) = sum ( a(i,1:n) ) / n;
  end

  return
end
