function ccvt_reflect_test ( )

%*****************************************************************************80
%
%% ccvt_reflect_test() tests ccvt_reflect().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 January 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../ccvt_reflect' )

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

  ndim = 2;
  n = 100;
  init_string = 'rand';
  it_max = 50;
  it_fixed = 1;
  sample_string = 'rand';
  sample_num = 100000;
  batch = 1000;
  movie_name = 'ccvt_reflect_test.avi';
  output = 'generators.txt';

  ccvt_reflect ( ndim, n, init_string, it_max, it_fixed, sample_string, ...
    sample_num, batch, movie_name, output );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ccvt_reflect_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../ccvt_reflect' )

  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

