MATLAB Answers

0

Don't see delta-peak in ksdensity

Asked by Sergey Makovkin on 13 Jul 2018
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 Comments

Sign in to comment.

Tags

0 Answers