File Exchange

image thumbnail

Closed-skew Gaussian generator

version 1.5 (2.33 KB) by

Genereates random number from the closed-skew Gaussian distribution.

0 Downloads

Updated

View License

Genereates random number from the closed-skew Gaussian distribution with two different methods:

CSN_mcmc.m
Does mcmc, so each realisation are not completely independent
% Usage: [res, t_wi, t_inv] =CSN_mcmc(Mu,Sigma,Gamma,Nu,Delta,num,burn)
%
% Mu,Sigma,Gamma,Nu,Delta: parameters in CSN
% num: number of realisations
% burn: burnin time, the first 'burn' realisations are not returned
% res: returned realisations

CSN_BM.m
Completely independent realisations, but takes much longer time.
% Usage: [res, t_wi, t_inv] =CSN_BM(Mu,Sigma,Gamma,Nu,Delta,num)
%
% Mu,Sigma,Gamma,Nu,Delta: parameters in CSN
% num: number of realisations
% res: returned realisations

More info about the algorithms can be found here: www.dahoiv.net/master

Comments and Ratings (0)

Updates

1.5

screenshot

1.3

spelling

1.1

Added more info

MATLAB Release
MATLAB 7.11 (R2010b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today