Be the first to rate this file! 13 Downloads (last 30 days) File Size: 2.33 KB File ID: #31969
image thumbnail

Closed-skew Gaussian generator

by Daniel Høyer Iversen

 

27 Jun 2011 (Updated 27 Jun 2011)

Genereates random number from the closed-skew Gaussian distribution.

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.11 (2010b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
27 Jun 2011

Added more info

27 Jun 2011

spelling

27 Jun 2011

screenshot

Tag Activity for this File
Tag Applied By Date/Time
csn Daniel Høyer Iversen 27 Jun 2011 09:00:28
closed skew gaussian Daniel Høyer Iversen 27 Jun 2011 09:01:15
mcmc Daniel Høyer Iversen 27 Jun 2011 09:43:35
statistics Daniel Høyer Iversen 27 Jun 2011 15:49:28
simulation Daniel Høyer Iversen 27 Jun 2011 15:49:28

Contact us at files@mathworks.com