entropy

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
m (Entropy moved to entropy)
 
Line 6: Line 6:
 
Return Value: A float number
 
Return Value: A float number
 
|
 
|
Syntax: entropy(object=VAL)
+
[[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 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.

Latest revision as of 09:20, 27 March 2006



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