entropy

From DavinciWiki
Jump to: navigation, search


Description

Compute the entropy of an object

Arguments and Return Values

Arguments: A numeric array

Return Value: A float number

Usage

Syntax: entropy(object = VAL)

The entropy() function computes the entropy in an object, as sum(p * log2(p)), where p is the probability of each symbol occuring. This is determined by sorting the values in the object and then counting them.

The entropy() function always returns a FLOAT.

Examples

dv> a
345x200x10 array of float, bsq format [2,760,000 bytes]

dv> entropy(a)
18.3510

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left


Recent Core Changes

Modified On: 03-27-2006

Personal tools