function cnoise_test ( )

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

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

  m = 10000;
  n = 10000;
  var = 1.0;
  alpha = 1.0;
  cnoise_test01 ( m, n, var, alpha );

  m = 10000;
  n = 10000;
  var = 1.0;
  r = 1.0;
  alpha = 1.0;
  cnoise_test02 ( m, n, var, r, alpha );

  m = 10000;
  n = 10000;
  r = 1.0;
  alpha = 1.0;
  cnoise_test03 ( m, n, r, alpha );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'cnoise_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../cnoise' );

  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

