Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.205.117 Times

nth_element 1.0

  Date Added: March 24, 2013  |  Visits: 235

nth_element

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 downloads)



C++ std::nth_element is an efficient algorithm for selecting a ranked element from a vector of data. Typically it is implemented as a variant of quickselect, AKA Hoare's Selection Algorithm. The mex-file in this package will run nth_element over a 2D array column-wise. See C++ documentation and http://en.wikipedia.org/wiki/Selection_algorithm for more information://http://en.wikipedia.org/wiki/Select...ore information.I have added (as of v0.84) the ability to operate on data in-place. This potentially saves an array copy so can be significantly more efficient. I see about another 2x speedup in my tests. I've tested this somewhat, but you should still consider it experimental. It may also break on future versions of Matlab. Please give it a try and send feedback.One example calculation based on nth_element is also included, a mex-file for fast_median. In my benchmarks, fast_median is roughly twice as fast as MatLab's native median function. MatLab's median relies on sort, but sorting the entire input data to get the median is inefficient. Theoretical average complexity of fast_median is O(n), compared to best case complexity of O(n log n) for a full sort based approach.Median calculations are particularly important in robust statistics, for example the median absolute deviation (MAD).To install, unpack the zip, go to the directory from MatLab, and run: > mex nth_element.cpp > mex fast_median.cppThen put the resulting binaries on your MatLab path.

Requirements: No special requirements
Platforms: Matlab
Keyword: Entire Function Inefficient Input Matlab Median Native Relies Sorting
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


NTH_ELEMENT RELATED
Development Tools  -  Multidimensional Discrete Cosine Transform (DCT) 1.0
The function is much faster than Matlab's native (dct, idct, dct2, idct2). It also allows N-D (multidimensional) input.Example:x=randn(100,200,300);y=mirt_dctn(x); % forward DCTx=mirt_idctn(y); % inverse DCTFind more at my home...
10 KB  
Communication  -  Specific Sample Function Plotting using MatLab 1.0
specific function which result of pyramid surface bar graph.
10 KB  
Image Galleries  -  RGB2Lab 1.0
This script can be used alongside MATLAB's native function lab2double (CIELAB to RGB conversion). CIELAB is a nonlinear transformation of RGB where the Euclidean distance between two colors is equal to their perceptual distances (for distances...
 
Multimedia  -  matrix2latex GUI 1.0
This function converts an MATLAB 2-dimensional array (matrix) which can be numerical or a cell array, into proper formated LaTeX code. This utility is actually the GUI representation of M.Koehler matrix2latex code.
10 KB  
Communication  -  Frequency Plotting 1.0
THIS FUNCTION PLOTS FFT OF THE SIGNAL INPUT TO THE FUNCTION ISuserfft(input, sampling frequency, waveform, psd) input -> Input waveform sampling frequency -> Sampling frequency waveform -> 'real' refers to real baseband signals plots only half the...
10 KB  
Development Tools  -  3D CT/MRI images interactive sliding viewer 1.0
The function's input is just a 3D image. 3 orthogonal slice objects are created in a 3D space. You can grasp one image slice and move your mouse to see the changing image data on the slice. Their motions are confined to translations along the 3rd...
10 KB  
Development Tools  -  doubleintegral 1.0
The intention is to make a more flexible and more general function than the Matlab function dblquad. Especially the domain may be given in a more general way, it may be a circle, a rectangle, or any convex polygon. Also different methods may be...
10 KB  
Development Tools  -  uneval 1.0
This function converts a MATLAB variable into a text string, which when evaluated, produces the original variable having identical:data types (single, double, int8, ...)structurescell arraysmulti-dimensional arraysnested struct's of cell arrays of...
10 KB  
Development Tools  -  mfileread 1.0
This function reads a Matlab m-file, trims the content (removing empty lines and unnecessary spaces), and divides the content into code and comment part.It returns a struct with fields holding information on the number of non-empty lines, and...
10 KB  
Multimedia  -  LaPrint 1.0
LaPrint is a MATLAB function to print MATLAB graphics for inclusion in LaTeX documents. LaPrint creates an eps-file and a tex-file. The tex-file contains the annotation of the figure such as titles, labels and texts. The eps-file contains the...
102.4 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB