function colored_noise_test ( )

%*****************************************************************************80
%
%% colored_noise_test() tests colored_noise().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    20 December 2018
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../colored_noise' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'colored_noise_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s.\n', version ( ) );
  fprintf ( 1, '  Test colored_noise().\n' );

  r8vec_sftf_test ( );

  n = 128;
  q_d = 1.0;
  alpha = 0.00;

  for i = 0 : 8
    alpha = 0.25 * i;
    colored_noise_test01 ( n, q_d, alpha );
  end

  alpha = 0.0;
  colored_noise_test02 ( alpha, 'alpha_0.00_paths.png' );

  alpha = 0.5;
  colored_noise_test02 ( alpha, 'alpha_0.50_paths.png' );

  alpha = 1.0;
  colored_noise_test02 ( alpha, 'alpha_1.00_paths.png' );

  alpha = 1.5;
  colored_noise_test02 ( alpha, 'alpha_1.50_paths.png' );

  alpha = 2.0;
  colored_noise_test02 ( alpha, 'alpha_2.00_paths.png' );
%
%  Make plots from data.
%
  make_plots ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'colored_noise_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../colored_noise' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

