statistics-0.3: A library of statistical types, data, and functions

Portabilityportable
Stabilityexperimental
Maintainerbos@serpentine.com

Statistics.Function

Description

Useful functions.

Synopsis

Documentation

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

:: (UA e, Ord e) 
=> Int

The number k of least elements.

-> UArr e 
-> UArr e 

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.