Quasi Skewed Truncated Normal Generator

Version 1.0.2 (42.3 KB) by andrepiz
qstrandn - Quasi Skewed Truncated Normal Generator
20 Downloads
Updated 21 Feb 2022

View License

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 (2024). Quasi Skewed Truncated Normal Generator (https://www.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 Linux
Acknowledgements

Inspired by: Truncated Normal 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.2

Uniformed picture

1.0.1

Toolbox Kick-Off

1.0.0