Plugging a new value to ksdensity
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Roy0014
am 27 Dez. 2024 um 21:56
Kommentiert: Roy0014
am 28 Dez. 2024 um 18:01
I have a one dimensional vector r sampled from some (unknown) probability distribution and fit ksdensity to compute its pdf.
Then, I want to obtain a fitted value of f on a new scalar (say, x_new), which is not a member of xi.
How can I do it?
For instance,
r = randn(100,1);
[f,xi]=ksdensity(r);
x_new=1.1;
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!