Skip to main content

avg_elements

Function avg_elements 

Source
pub fn avg_elements(view: &V2TypedArrayView) -> Option<(u64, NativeKind)>
Expand description

Compute the average (mean) of all elements of a numeric v2 typed array. Returns NaN for empty arrays. Returns (bits, NativeKind::Float64) always (mean of integer arrays is a float).