qselect

Select the k-th smallest out of n numbers.
61 téléchargements
Mise à jour 28 sept. 2018

Afficher la licence

Finds the k-th smallest from a list of n numbers. Based on Hoare's Quickselect algorithm with the median of three pivot strategy.
See https://en.wikipedia.org/wiki/Quickselect for details.

The k-th *largest* element can be found by passing n+1-k

Citation pour cette source

Manolis Lourakis (2026). qselect (https://fr.mathworks.com/matlabcentral/fileexchange/68947-qselect), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2013a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Random Number Generation dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0