Code covered by the BSD License  

Highlights from
Truncated multivariate normal

Be the first to rate this file! 11 Downloads (last 30 days) File Size: 5.62 KB File ID: #34402

Truncated multivariate normal

by Tim Benham

 

01 Jan 2012

Generates pseudo-random vectors drawn from the truncated multivariate normal distribution.

| Watch this File

File Information
Description

   X = rmvnrnd(MU,SIG,N,A,B) returns in N-by-P matrix X a
   random sample drawn from the P-dimensional multivariate normal
   distribution with mean MU and covariance SIG truncated to a
   region bounded by the hyperplanes defined by the inequalities Ax<=B.

   [X,RHO,NAR,NGIBBS] = rmvnrnd(MU,SIG,N,A,B) returns the
   acceptance rate RHO of the accept-reject portion of the algorithm
   (see below), the number NAR of returned samples generated by
   the accept-reject algorithm, and the number NGIBBS returned by
   the Gibbs sampler portion of the algorithm.

   rmvnrnd(MU,SIG,N,A,B,RHOTHR) sets the minimum acceptable
   acceptance rate for the accept-reject portion of the algorithm
   to RHOTHR. The default is the empirically identified value
   2.9e-4.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Truncated Gaussian

MATLAB release MATLAB 7.9 (2009b)
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.
Tag Activity for this File
Tag Applied By Date/Time
random Tim Benham 03 Jan 2012 09:18:11
distribution Tim Benham 03 Jan 2012 09:18:11
gaussian Tim Benham 03 Jan 2012 09:18:11
normal Tim Benham 03 Jan 2012 09:18:11
sample Tim Benham 03 Jan 2012 09:18:11
multivariate Tim Benham 03 Jan 2012 09:18:11
multivariate normal Tim Benham 03 Jan 2012 09:18:11

Contact us at files@mathworks.com