function r8row_running_average_test ( )

%*****************************************************************************80
%
%% R8ROW_RUNNING_AVERAGE_TEST tests R8ROW_RUNNING_AVERAGE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    24 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8ROW_RUNNING_AVERAGE_TEST\n' );
  fprintf ( 1, '  R8ROW_RUNNING_AVERAGE returns M sets of running averages\n' );
  fprintf ( 1, '  of an MxN R8ROW.\n' );

  m = 5;
  n = 10;
  a = -5.0;
  b = +10.0;
  seed = 123456789;

  [ r, seed ] = r8row_uniform_ab ( m, n, a, b, seed );

  r8row_print ( m, n, r, '  Random R8ROW:' );

  s = r8row_running_average ( m, n, r );

  r8row_print ( m, n + 1, s, '  Running averages:' )

  return
end
