function mean = bernoulli_mean ( a ) %*****************************************************************************80 % %% BERNOULLI_MEAN returns the mean of the Bernoulli PDF. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 02 September 2004 % % Author: % % John Burkardt % % Parameters: % % Input, real A, the probability of success. % 0.0D+00 <= A <= 1.0. % % Output, real MEAN, the mean of the PDF. % mean = a; return end