Gaussian Random Samples Generation

버전 1.0.0.0 (1.45 KB) 작성자: John Shell
Generates 2-dimensional gaussian samples.
다운로드 수: 8.7K
업데이트 날짜: 2004/10/12

라이선스 없음

randgen(mu,mu1,mu2,cov1,cov2,cov3) = Random generation of Gaussian Samples in d-dimensions where d = 2
mu, mu1, mu2 = (x,y) coordinates(means) that the gaussian samples are centered around. cov1, cov2, cov3 are the covariance matrices and will vary changing the shape of the distribution, example: cov = sigma^2*Identity Matrix, where sigma^2 = a scalar. N = the number of gaussian samples used and are provided as user input. A test set of N/2 and a training set of N/2 gaussian samples is also generated. Output is directed to the command window and a plot of the distributions are generated.

example1: randgen([4 5],[9 0;0 9],[10 15],[6 0;0 6],[15 10],[4 0;0 4]) or

example2: randgen([4 5],[9, 0; 0 9],[10 15],[5, 1.5; 1, 5.5],[15 10],[6, -1; -1, 4])

인용 양식

John Shell (2025). Gaussian Random Samples Generation (https://kr.mathworks.com/matlabcentral/fileexchange/6028-gaussian-random-samples-generation), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R14
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Random Number Generation에 대해 자세히 알아보기
도움

도움 받은 파일: Multivariate Gaussian Distribution

Community Treasure Hunt

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

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