stddev

From DavinciWiki
Jump to: navigation, search


Description

Compute standard deviation along specified axis

Arguments and Return Values

Arguments: A numeric array

Return Value: A float number or a structure

Usage

Syntax: stddev(object = VAL, axis = [x][y][z] [, both = 1] [, ignore = VAL])

The stddev() function computes the standard deviation along one or more axis. If no axis is specified, then the standard deviation is computed along all three. stddev() returns a FLOAT.

If an ignore value is specified, then any element that is equal to the ignore value is not included in the computation. If all the values in the computation are equal to the ignore value, then the output is set to the ignore value.

If the both flag is set (both=1), then stddev returns a structure containing the both the average and stddev.

Note: The stddev function uses a one-pass accumulator that can experience round off error with lots of numbers.

Examples

dv> a
100x100x1 array of float, bsq format [40,000 bytes]

dv> stddev(a,axis=xy)
0.290361

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: 03-27-2006

Personal tools