function check = half_normal_check ( a, b )

%*****************************************************************************80
%
%% HALF_NORMAL_CHECK checks the parameters of the Half Normal PDF.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    04 April 2016
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, real A, B, the parameters of the PDF.
%    0.0 < B.
%
%    Output, logical CHECK, is true if the parameters are legal.
%
  check = 1;

  if ( b <= 0.0 )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'HALF_NORMAL_CHECK - Fatal error!\n' );
    fprintf ( 1, '  B <= 0.\n' );
    check = 0;
  end

  return
end
