Home > freetb4matlab > info-theory > hartley_entropy.m

hartley_entropy

PURPOSE ^

%

SYNOPSIS ^

function R=hartley_entropy(P)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} hartley_entropy (@var{P})
%
% Compute the Hartley entropy using Reyni entropy of order 0,
% for the given probability distribution.
%
% @math{H\alpha(P(x)) = log{\sum_i (Pi(x)^\alpha)}/(1-\alpha)}
%
% special-cases include, and when alpha=0, it reduces 
% to Hartley entropy.
%
% Hartley entropy H0(X) = log|X|, where X=n(P), cardinality of P,
% the pdf of random variable x.
%
% @example
% @group
%          hartley_entropy([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