function c = correlation_hole ( n, rho, rho0 )

%*****************************************************************************80
%
%% correlation_hole() evaluates the hole correlation function.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 October 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of arguments.
%
%    real RHO(N,1), the arguments.
%
%    real RHO0, the correlation length.
%
%  Output:
%
%    real C(N,1), the correlations.
%
  rho = rho ( : );

  rhohat = abs ( rho ) / rho0;

  c = ( 1.0 - rhohat ) .* exp ( - rhohat );

  return
end


  
