How to generate random multidimensional samples using a custom multidimensional probability distribution?

Is there any matlab function that can generate multidimensional samples using a custom multidimensional probability distribution function? I want to generate multidimensional samples using a custom multidimensional PDF. For example, I have a custom made PDF: P(A) where A = {a1,a2,a3,...}; in other word the PDF is P(a1,a2,a3,...). I want to generate samples {A1,A2,A3,..} from P(A) where A1 = {a11,a12,a13,...}; A2 = {a21,a22,a23,...}; A3 = {a31,a32,a33,...}; ...

답변 (1개)

You can look into these functions to create n-dimensional random values based on a probability distribution:

댓글 수: 1

Thank you for your answer. However, if I understand it correctly, mvrnd uses normal distribution to generate the random number and random is only support the pdf available in distribution toolbox. On the other hand, I want to use my own custom pdf. Do I misunderstood the mvrnd and random function?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

태그

질문:

2017년 7월 26일

댓글:

2017년 7월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by