statistics-0.3: A library of statistical types, data, and functions
Statistics.Function
Description
Useful functions.
Synopsis
minMax :: UArr Double -> Double :*: DoubleSource
Compute the minimum and maximum of an array in one pass.
sort :: (UA e, Ord e) => UArr e -> UArr eSource
Sort an array.
partialSortSource
Arguments
The number k of least elements.
Partially sort an array, such that the least k elements will be at the front.
createU :: UA e => forall s. Int -> (Int -> ST s e) -> ST s (UArr e)Source
Create an array, using the given action to populate each element.