function r8vec_mean_running_test ( )

%*****************************************************************************80
%
%% r8vec_mean_running_test() tests r8vec_mean_running().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_MEAN_RUNNING_TEST\n' );
  fprintf ( 1, '  R8VEC_MEAN_RUNNING returns the running means of an R8VEC.\n' );

  n = 10;
  a = -5.0;
  b = +10.0;
  r = a + ( b - a ) * rand ( n, 1 );

  r8vec_print ( n, r, '  Random R8VEC:' );

  s = r8vec_mean_running ( n, r );

  r8vec_print ( n + 1, s, '  Running means:' )

  return
end
