function cvt_box_test ( )

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

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

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

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

  rmpath ( '../cvt_box' )

  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

