function [ age, total_cdf, male_cdf, female_cdf ] = mortality_cdf ()

%*****************************************************************************80
%
%% mortality_cdf() determines mortality cumulative density function.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 November 2020
%
%  Author:
%
%    John Burkardt
%

%
%  Get the data.
%
  [ age, total, male, female ] = mortality_count ( );
%
%  Normalize.
%
  total = total / sum ( total );
  male = male / sum ( male );
  female = female / sum ( female );
%
%  Compute the CDF's as cumulative sums.
%
  total_cdf = cumsum ( total );
  male_cdf = cumsum ( male );
  female_cdf = cumsum ( female );

  return
end
 
