Home > freetb4matlab > info-theory > redundancy.m

redundancy

PURPOSE ^

%

SYNOPSIS ^

function [val,ent,lavg]=redundancy(code_word_list,symprob)

DESCRIPTION ^

% -*- 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003