how to generate a uniform distribution with an constraint
조회 수: 1 (최근 30일)
이전 댓글 표시
Dear fellows,
I want to do a simulation. There are two variables c1 and c2. And they satisfy a function f(c1,c2)=constant. Assuming c1 and c2 are uniformally distributed along the function f(c1,c2)=constant, how can I realize this?
Cheers, X
댓글 수: 0
채택된 답변
Iain
2013년 7월 30일
Rearrange the function into the form:
c2 = g(c1,constant),
Randomly generate c1, and simply calculate c2, based on the constant you know.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!