median
Median of values, or None when it is empty or contains a NaN.
For an even number of values it is the midpoint of the two middle ones. The input is not modified.
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 find the median of. |
Returns
Section titled “Returns”Option<f64>
