|
|
| File Information |
| Description |
Using a partial quick-sort algorithm implemented with C-MEX. The complexity is O(n + k.log(k)), where n is the size of the array, and k is the number of elements to be selected.
Faster than SORT or multiple call of MIN/MAX for large size inputs.
Multidimensional capability supported |
| MATLAB release |
MATLAB 7.3 (R2006b)
|
| Zip File Content |
|
| Other Files |
license.txt, MinMaxSelection/buildInternal_mxArrayDef.m, MinMaxSelection/Contents.txt, MinMaxSelection/getmexopts.m, MinMaxSelection/inplacecolumnmex.c, MinMaxSelection/maxk.m, MinMaxSelection/maxkmex.c, MinMaxSelection/maxkmex.m, MinMaxSelection/mink.m, MinMaxSelection/minkmex.c, MinMaxSelection/minkmex.m, MinMaxSelection/minmax_install.m, MinMaxSelection/minmaxk.m, MinMaxSelection/releaseinplace.c, MinMaxSelection/testminmax.m
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 07 Apr 2009 |
Bug correction (for k=0)
Do not compute unnecessary location indexes when not required. |
| 24 May 2009 |
Supported sparse input |
| 26 Jun 2009 |
handle arrays with NaN |
| 29 Jun 2009 |
Correct bug + inplace engine |
| 11 Aug 2009 |
Correct bug: cleanup the inplace variable when MEX issues an error (otherwise computer might crash) |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com