Home > freetb4matlab > info-theory > renyi_entropy.m

renyi_entropy

PURPOSE ^

%

SYNOPSIS ^

function R=renyi_entropy(alpha,P)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} renyi_entropy (@var{alpha}, @var{P})
%
% Compute the Renyi entropy of order @var{alpha},
% for the given probability distribution @var{P}.
%
% @math{Halpha(P(x)) = log{\sum_i{(P(x_i)^alpha)}/(1-alpha)}}
%
% special-cases include, when @var{alpha}=1, it reduces to
% regular definition of shannon entropy, and when @var{alpha}=0,
% it reduces to hartley entropy.
%
% @example
% @group
%          renyi_entropy(0,[0.2 0.3 0.5])
%          @result{}   ans = 1.0986
% @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