Multivariate Gaussian Distribution

버전 1.0.0.0 (2.05 KB) 작성자: Timothy Felty
Calculates samples from a multivariate Gaussian distribution.
다운로드 수: 14.5K
업데이트 날짜: 2007/5/18

라이선스 보기

Creates a number of samples from a specified number of dimensions and centers them around a given mean, and within a given covariance range. You might not find it very useful, but hey, I need something to do this so why not.

To use:
You need to generate 1000 samples from a 3 dimensional Gaussian distribution with a mean m = [4,5,6], and with a covariance sigma = [9 0 0;0 9 0;0 0 9].

Command line:
x=mgd(1000,3,m,sigma) or x=mgd(1000,3,m',sigma)
it doesn't matter if the mean is given as a row or column vector

x is a (1000x3) matrix of the where
where each row is the coordinates of that point in 3 space.

인용 양식

Timothy Felty (2025). Multivariate Gaussian Distribution (https://kr.mathworks.com/matlabcentral/fileexchange/5984-multivariate-gaussian-distribution), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R12.1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
도움

도움 준 파일: Gaussian Random Samples Generation

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Added some error checking that was lacking. Updated to gracefully handle the one sample issue. Updated the comments.