Expand description
§Substrate Median
An efficient implementation of a median algorithm within a Substrate runtime.
Structs§
- Lexicographic
Reverse - A wrapper such that
a.cmp(&b).reverse() == e(LexicographicReverse(a)).cmp(&e(LexicographicReverse(b))).
Enums§
- Policy
- The policy to use to select the median when the list of candidates is of even length.
Traits§
- Average
- A trait to take the average of two values
- Lexicographic
Encoding - A trait to obtain an encoding whose lexicographic order corresponds to the value’s.
- Median
- A median.
- Median
Store - The store for a median.