quickselectFS finds the k-th order statistic
quickselectFS is a linear algorithm equivalent to quickselect (Hoare's Find), which computes order statistics with an approach that avoids recursion and repeated calls to partitioning functions.
REMARK: we also provide the mex counterpart, quickselectFSmex; see the last example to understand how it works.
Azzini, I., Perrotta, D. and Torti, F. (2023), A practically efficient fixed-pivot selection algorithm and its extensible MATLAB suite, "arXiv, stat.ME, eprint 2302.05705"
Riani, M., Perrotta, D. and Cerioli, A. (2015), The Forward Search for Very Large Datasets, "Journal of Statistical Software"