Quasi Skewed Truncated Normal Generator
Version 1.0.2 (42.3 KB) by
andrepiz
qstrandn - Quasi Skewed Truncated Normal Generator
qstrandn samples n data points following three types of normal distributions and their combinations:
- QUASI NORMAL: normal distribution elevated to the power of c
- SKEWED NORMAL: normal distribution with skewness alpha
- TRUNCATED NORMAL: normal distribution truncated at lower limit l and upper limit u
% x=qstrandn(n,mu,sigma,c,alpha,l,u)
% OUTPUT
% x=sampled data
% INPUT
% n=number of samples
% mu=mean (default: 0 --> standard Gaussian distribution)
% sigma=standard deviation (default: 1 --> standard Gaussian distribution)
% c=coefficient of quasi-normality (default: 1 --> Gaussian distribution)
% alpha=skewness (default: 0 --> not-skewed distribution)
% l=lower limit of truncation (default: -inf --> no lower truncation)
% u=upper limit of truncation (default: inf --> no upper truncation)
Cite As
andrepiz (2026). Quasi Skewed Truncated Normal Generator (https://uk.mathworks.com/matlabcentral/fileexchange/105105-quasi-skewed-truncated-normal-generator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Truncated Normal Generator
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.2 | Uniformed picture |
|
|
| 1.0.1 | Toolbox Kick-Off |
|
|
| 1.0.0 |
|
