function clayton_test02 ( )

%*****************************************************************************80
%
%% clayton_test02() plots correlation functions together, RHO0 = 1/4, or 1.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 March 2012
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'clayton_test02():\n' );
  fprintf ( 1, '  Plot correlation function for RHO0 = 1/4 and 1.\n' );
  fprintf ( 1, '\n' );
%
%  RHO0 = 0.25
%
  clf ( );
  hold ( 'on' );
  n = 101;
  rho0 = 0.25;
  rho = linspace ( -2.0, 2.0, n );
  c1 = correlation_cubic ( n, rho, rho0 );
  c2 = correlation_exponential ( n, rho, rho0 );
  c3 = correlation_gaussian ( n, rho, rho0 );
  c4 = correlation_linear ( n, rho, rho0 );
  c5 = correlation_rational_quadratic ( n, rho, rho0 );
  c6 = correlation_spherical ( n, rho, rho0 );
  plot ( rho, c1, rho, c2, rho, c3, rho, c4, rho, c5, rho, c6, 'Linewidth', 3 );
  grid ( 'on' );
  ylabel ( '<-- Correlation Strength -->' );
  xlabel ( '<-- Distance -->' );
  title ( 'RHO0 = 1/4, Cubic/Exponential/Gaussian/Linear/RatQuad/Spherical' );
  axis ( [-2.0, 2.0, 0.0, +1.0] );
  hold ( 'off' );
  filename = 'clayton_multi_0.25.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  RHO0 = 1.00
%
  clf ( );
  hold ( 'on' );
  n = 101;
  rho0 = 1.00;
  rho = linspace ( -2.0, 2.0, n );
  c1 = correlation_cubic ( n, rho, rho0 );
  c2 = correlation_exponential ( n, rho, rho0 );
  c3 = correlation_gaussian ( n, rho, rho0 );
  c4 = correlation_linear ( n, rho, rho0 );
  c5 = correlation_rational_quadratic ( n, rho, rho0 );
  c6 = correlation_spherical ( n, rho, rho0 );
  plot ( rho, c1, rho, c2, rho, c3, rho, c4, rho, c5, rho, c6, 'Linewidth', 3 );
  grid ( 'on' );
  ylabel ( '<-- Correlation Strength -->' );
  xlabel ( '<-- Distance -->' );
  title ( 'RHO0 = 1, Cubic/Exponential/Gaussian/Linear/RatQuad/Spherical' );
  axis ( [-2.0, 2.0, 0.0, +1.0] );
  hold ( 'off' );
  filename = 'clayton_multi_1.00.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end

