Don't see delta-peak in ksdensity

1 回表示 (過去 30 日間)
Sergey Makovkin
Sergey Makovkin 2018 年 7 月 13 日
Hi.
I have a code:
omega_cur = 0;
omega_total = [];
for i = 1:36
omega_cur = 0.05;
omega_total = [omega_total omega_cur'];
end
start_density_base = 0;
d_density_base = 0.000001;
end_density_base = 0.15;
density_base = (start_density_base : d_density_base : end_density_base)';
[f] = ksdensity(omega_total, density_base);
f = f / max(f);
plot(density_base, f, 'r', 'LineWidth', 2);
xlim([0 0.15]);
ylim([0 1.01]);
Why I don't see the delta-peak at 0.05? What's wrong with ksdensity?

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by