File Exchange

image thumbnail

Quantile calculation

version 1.4.0.0 (715 KB) by Christopher Hummersone
Quantiles of a sample via various methods

9 Downloads

Updated 05 May 2018

View License on GitHub

NOTE: this function is now available from the IoSR Matlab Toolbox as iosr.statistics.quantile.
-------------------------
This function calculates quantiles and weighted quantiles for vectors, matrices, or N-D arrays, via one of a number of methods described in http://en.wikipedia.org/wiki/Quantile.

Comments and Ratings (2)

SH3

SH3 (view profile)

Carl Witthoft

Handy toolset. One suggestion: your "localpeaks" function is a bit crude. Take a look at some of the FE entries which allow for specified minimum peak separation, do curve-fitting, etc.

Updates

1.4.0.0

Migrated to GitHub.

1.4.0.0

Added weighting option.

1.3.1.0

Added picture.

1.3.1.0

Corrected name.

1.3.1.0

Corrected name.

1.3.1.0

Minor bug fix when checking P and minor simplification in preallocation of q and N. Added N output to help.

1.3.0.0

Added traps for sample sizes of 0 or 1.

1.2.0.0

Added more input checking.

1.1.0.0

Updated function to return sample size.

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired by: Returns weighted percentiles of a sample

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor