stddev
Line 1: | Line 1: | ||
− | {{DavinciWiki_Function | + | {{DavinciWiki_Function| |
− | [[ | + | Compute standard deviation along specified axis |
+ | | | ||
+ | Arguments: | ||
+ | |||
+ | Return Value: | ||
+ | | | ||
+ | Syntax: stddev(object=VAL, axis=[x][y][z], [both=BOOL], [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. | ||
+ | | | ||
+ | dv> a | ||
+ | 100x100x1 array of float, bsq format [40,000 bytes] | ||
+ | |||
+ | dv> stddev(a,axis=xy) | ||
+ | 0.290361 | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | *[[avg]] | ||
+ | *[[sqrt]] | ||
+ | | | ||
+ | | | ||
+ | }} | ||
[[category:Functions]] | [[category:Functions]] | ||
+ | [[category:Davinci Core]] | ||
[[category:Math]] | [[category:Math]] |
Revision as of 14:46, 27 February 2006
Contents: Description, Arguments, Usage, Examples, Related Functions Supported Under Version: >1.69 Current Davinci Version: 2.27 64-bit Safe: No
Description Compute standard deviation along specified axis
Arguments and Return Values Arguments: Return Value:
Usage Syntax: stddev(object=VAL, axis=[x][y][z], [both=BOOL], [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
All other topics
Recent Core Changes Modified On: 03-27-2006 |