|
성공적인 결과를 얻었다. (1) Description of the method with your code.
(a) matlab code for histograms.
(b) matlab code for scattergrams.
(2) Two histogram figures for 1000 and 5000 samples.
(3) Two scattergrams for 1000 and 5000 pairs of Gaussian random variables.
(4) Your comments on the
|
- 페이지 7페이지
- 가격 2,000원
- 등록일 2021.02.01
- 파일종류 워드(doc)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
ouble) sum / SAMPLE*2);
}
}
fclose(error);
return 0;
}
double gaussian1()
{
double v1, v2, s;
do
{
v1 = 2 * ((double) rand() / RAND_MAX) - 1; // -1.0 ~ 1.0 까지의 값
v2 = 2 * ((double) rand() / RAND_MAX) - 1; // -1.0 ~ 1.0 까지의 값
s = v1 * v1 + v2 * v2;
} while (s >= 1 || s == 0);
s = sqrt(( -2
|
- 페이지 5페이지
- 가격 2,300원
- 등록일 2014.04.07
- 파일종류 한글(hwp)
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
gaussian
(1) pdf/cdf
x = -4:0.05:8
y = gausspdf(2,1.5,x)
z = gausscdf(2,1.5,x)
subplot(1,2,1)
plot (x, y)
subplot(1,2,1), axis([-4 8 0 0.4])
grid on
xlabel('x'); ylabel('pdf');
subplot(1,2,2)
plot(x, z)
subplot(1,2,2), axis([-4 8 0 1])
grid on
xlabel('x'); ylabel('cdf');
(2) pdf/cdf 랜덤 샘플
|
- 페이지 6페이지
- 가격 3,000원
- 등록일 2008.04.22
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
gaussian_graphic();
getch();
closegraph();
}
void gaussian_graphic()
{
int i;
double pi, x, x_term, y[560];
pi = 3.141592;
x_term = 70.0;
setcolor(RED);
for(i=0; i<560; i++)
{
x = -4 + i / x_term;
y[i] = exp( - pow(x,2) / 2 ) / sqrt( 2 * pi );
}
for(i=0; i<560; i++)
{
x_term = 50 + i;
y[i] = 4
|
- 페이지 6페이지
- 가격 1,000원
- 등록일 2005.11.24
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|