Two-Sided Power Distribution
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 (2026). Two-Sided Power Distribution (https://www.mathworks.com/matlabcentral/fileexchange/16368-two-sided-power-distribution), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Continuous Distributions > Generalized Pareto Distribution >
Tags
Acknowledgements
Inspired by: Triangular Distributed Random Variable Generator
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
