Two-Sided Power Distribution

Version 1.0.0.0 (570 Bytes) by Kash Barker
TSPRND generates discrete random numbers from a two-sided power distribution
916 Downloads
Updated 14 Sep 2007

No License

Adapted from the trirnd(a,c,b,n) user-submited m-file by Dr. Mongkut Piantanakulchai, the tsprnd(a,c,b,n,m) simulates the four-parameter two-sided power distribution with parameters:
a - minimum value
b - maximum value
c - most likely value
n - shape parameter
m - total number of random samples generated, forming an m-by-1 vector X.

A useful alternative to the triangular distribution, allowing for a nonlinear distribution. Triangular and uniform distributions are special cases of the two-sided power distribution.

Details about the two-sided power distribution can be found in:
van Dorp, J.R. and S. Kotz. 2002. A Novel Extension of the Triangular Distribution and its Parameter Estimation. The Statistician, 51: 63-79.

Cite As

Kash Barker (2025). Two-Sided Power Distribution (https://www.mathworks.com/matlabcentral/fileexchange/16368-two-sided-power-distribution), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Triangular Distributed Random Variable Generator

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0