How to correctly change mean in the distribution?

조회 수: 3 (최근 30일)
Nathalie
Nathalie 2014년 3월 21일
편집: Matt J 2014년 3월 21일
I computed numerically g-pdf function, where the means- i take points in the grid. When I would to change the mean, i.e. multiply by 1.5*mean, I get completely different results. Do you know why it can happen?
dx = (x_max-x_min)/(n_max-1);
grid_x=linspace(x_min, x_max, n_max);
grid_x = (grid_x(1:end-1)+grid_x(2:end))/2;
g = [];
for i=1:n_max-1
g = [g; dx*normpdf(grid_x, grid_x(i), sigma)];
end
In the above example, I just change for 1.5*grid_x(i).
Thanks.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by