


% -*- texinfo -*-
% @deftypefn {Function File} {} redundancy (@var{code_word_list}, @var{symbol_probabilites})
%
% Computes the wasted excessive bits over the entropy when using a
% particular coding scheme. For example
%
% @example
% @group
% prob_list = [0.5 0.25 0.15 0.1];
% min_bits = entropy(prob_list);
% cw_list = huffman(prob_list);
% redundancy(cw_list,prob_list)
% @end group
% @end example
% @end deftypefn