Sha256: 2d6c636a7adfdec96503df1a3d33e323bce0800a93100d9c6ca1cc1010e42ff7

Contents?: true

Size: 443 Bytes

Versions: 6

Compression:

Stored size: 443 Bytes

Contents

# Stddev

Standard deviation

## Signature

stddev(expr: AttrName|(Tuple->Numeric)) -> Aggregator

## Examples
stddev(:qty)
stddev{|t| t.qty * t.price }
stddev(->(t){ t.qty * t.price })

## Description

Computes how much variation from the average exists.

## Implementation notes

This aggregate function should only be used with numeric types. As of
current Alf version, it does not aggregate empty sets correctly on
non-numeric data types.

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alf-shell-0.16.4 doc/txt/stddev.txt
alf-shell-0.16.3 doc/txt/stddev.txt
alf-shell-0.16.2 doc/txt/stddev.txt
alf-shell-0.16.1 doc/txt/stddev.txt
alf-shell-0.16.0 doc/txt/stddev.txt
alf-shell-0.15.0 doc/txt/stddev.txt