Sha256: 1f3c4d8d0a3c1e009ce4a995f2b650761fd3b17c75c12ad962f0df80cd9da692

Contents?: true

Size: 446 Bytes

Versions: 6

Compression:

Stored size: 446 Bytes

Contents

# Variance

Variance

## Signature

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

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

## Description

Computes how far the set of input values is spread out.

## 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/variance.txt
alf-shell-0.16.3 doc/txt/variance.txt
alf-shell-0.16.2 doc/txt/variance.txt
alf-shell-0.16.1 doc/txt/variance.txt
alf-shell-0.16.0 doc/txt/variance.txt
alf-shell-0.15.0 doc/txt/variance.txt