moments

From DavinciWiki
Jump to: navigation, search


Description

Compute standard statistics (min, max, mean, adev, sdev, var, skew, kurt, sum, count). Similar to moment, but return value is an structure rather than array.

Arguments and Return Values

Arguments: A numeric array

Return Value: A structure containing statistics

Usage

Syntax: moments(object = VAL)

Computes the following statistics for the input value, and returns them (in the specified order) in a structure containing the following elements:

  • min
  • max
  • avg
  • avgdev
  • stddev
  • variance
  • skewness
  • kurtosis
  • sum
  • count

Examples

dv> a
3x3x1 array of float, bsq format [36 bytes]
0.558329        0.100168        0.899324
0.805147        0.930234        0.535199
0.938504        0.0242239       0.597536

dv> moments(a)
struct, 10 elements
    min: 0.0242239
    max: 0.938504
    avg: 0.598740
    avgdev: 0.261833
    stddev: 0.343256
    variance: 0.117825
    skewness: -0.555733
    kurtosis: -1.35019
    sum: 5.38866
    count: 9.00000

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 12-08-2007

Personal tools