statistics-0.2.2: 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 => Int -> (Int -> IO e) -> IO (UArr e)Source
Create an array, using the given action to populate each element.