Compute the minimum and maximum of a vector in one pass.
Modulestatistics-0.16.3.0Haskell2010
Statistics.Function
Useful functions.
- 13 values
- Packagestatistics-0.16.3.0
- Exports13
- LanguageHaskell2010
- LicenceBSD-2-Clause
- SourceFunction.hs
Scanning
1 declarationSorting
4 declarationsSort 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
2 declarationsZip a vector with its indices.
Return the indices of a vector.
Bit twiddling
1 declarationEfficiently 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
1 declarationCompare 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
1 declarationMultiply a number by itself.
Vectors
1 declarationCombinators
2 declarationsSimple for loop. Counts from start to end-1.
Simple reverse-for loop. Counts from start-1 to end (which must be less than start).