Compute the minimum and maximum of a vector in one pass.
Modulestatistics-0.16.5.0Haskell2010
Statistics.Function
Useful functions.
Synopsis
- value minMax
- value sort
- value gsort
- value sortBy
- value partialSort
- value indexed
- value indices
- value nextHighestPowerOfTwo
- value within
- value square
- value unsafeModify
- value for
- value rfor
- Packagestatistics-0.16.5.0
- Exports13
- LanguageHaskell2010
- LicenceBSD-2-Clause
- SourceFunction.hs
Scanning
Sorting
Sort a vector.
Sort a vector.
Sort a vector using a custom ordering.
Partially sort a vector, such that the least k elements will be at the front.
Indexing
Zip a vector with its indices.
Return the indices of a vector.
Bit twiddling
Efficiently compute the next highest power of two for a non-negative integer. If the given value is already a power of two, it is returned unchanged. If negative, zero is returned.
Comparison
Compare two Double values for approximate equality, using Dawson's method.
The required accuracy is specified in ULPs (units of least
precision). If the two numbers differ by the given number of ULPs
or less, this function returns True.
Arithmetic
Multiply a number by itself.
Vectors
Combinators
Simple for loop. Counts from start to end-1.
Simple reverse-for loop. Counts from start-1 to end (which must be less than start).