[−][src]Crate main
Traits
| Fetching | frank::Fetching can be implemented for generic vectors that support Clone with 'use frank::Fetching;' It allows vector.fetch(&your_picks_vec_usize) and vector.fetch_guard(&your_picks_vec_usize). fetch is fast and fetch_guard is index guarded, won't terminate but does eprint!'s index errors and still returns computable results. |
| Ranking | frank::Ranking can be used with any generic vector that implements PartialOrd and Clone, and will return rankings from "greatest = 0" to least. just 'use frank::Ranking' for bolt on vector ranking functions like 'let myranks = myvector.rank();' Useful for non-parametric statistics like the difference between vec![82, 65, 78, 69, 68].rank() and vec!["r","a","n","k","ed"].rank() |
Functions
| fetch_fast | fetch_fast has no slow branching if-then checks on index values, it just returns what it is asked to and terminates program if out of index. |
| fetch_guard | vector.fetch(&my_borrowed_usize_list) will return a vector of your usized picks. Error tollerant and useful for user guided selective statistics, computation of quatriles and building custom scrolling levels out of 8 bit character bitmaps from selections that previously caused the most player deaths (maybe?)
use one of two ways: genericvector.fetch(&vector_usize_index_picks) or from the function with fetch_guard(&genericvector, &your_usize_picklist)
#Example |
| rank_count_greater | vector.rank() borrows a generic vector and returns a usize vector list of the count of greater items for each item. A rank system described by Wassily Hoeffding in 1947 that's like the olympics, but with a zeroth place instead of gold. |