function variance = chi_square_noncentral_variance ( a, b )

%*****************************************************************************80
%
%% chi_square_noncentral_variance() returns the variance of the noncentral Chi squared PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, the parameter of the PDF.
%    1 <= A.
%
%    real B, the noncentrality parameter of the PDF.
%    0.0 <= B.
%
%  Output:
%
%    real VARIANCE, the variance value.
%
  variance = 2.0 * ( a + 2.0 * b );

  return
end
