Quasi Skewed Truncated Normal Generator

qstrandn - Quasi Skewed Truncated Normal Generator

You are now following this Submission

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://se.mathworks.com/matlabcentral/fileexchange/105105-quasi-skewed-truncated-normal-generator), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Truncated Normal Generator

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.2

Uniformed picture

1.0.1

Toolbox Kick-Off

1.0.0