mean
Arithmetic mean of values, or None when it is empty.
NaN and infinities propagate as usual for f64.
Import
Section titled “Import”Cargo feature number (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
values | &[f64] | The values to average. |
Returns
Section titled “Returns”Option<f64>
