function c = correlation_white_noise ( n, rho, rho0 )

%*****************************************************************************80
%
%% correlation_white_noise() evaluates the white noise correlation function.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 August 2012
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Petter Abrahamsen,
%    A Review of Gaussian Random Fields and Correlation Functions,
%    Norwegian Computing Center, 1997.
%
%  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 ( : );
%
%  We need to insist that C is a real quantity, not a logical,
%  otherwise we can't call the toeplitz function later on!
%
  c = real ( rho == 0.0 );

  return
end

