function mean = dirichlet_mean ( n, a )

%*****************************************************************************80
%
%% dirichlet_mean() returns the means of the Dirichlet PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 October 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of components.
%
%    real A(N), the probabilities for each component.
%    Each A(I) should be positive.
%
%  Output:
%
%    real MEAN(N), the means of the PDF.
%
  mean(1:n) = r8vec_unit_sum ( n, a );

  return
end
