when smoothing data with gaussian how to define sd and mean
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Affi Jess
am 11 Jul. 2019
Kommentiert: Abdullah Al Shereiqi
am 20 Aug. 2020
Hi
I want to run a Gaussian smoothing function over my data with mean =2 and SD=2 . I dont know how to define these values with "smoothdata" function.
Thanks for your help.
0 Kommentare
Akzeptierte Antwort
Chris Turnes
am 12 Jul. 2019
The 'gaussian' method for smoothdata uses a fixed (but window-dependent) standard deviation, and mean of zero. If you want to smooth with a Gaussian that has a mean of 2, you can just add 2 to the data before you smooth it. The standard deviation is 1/5th of the window size, so if you want a standard deviation of 2 you would need to set your window to 10 (but note that you are getting a convolution with a Gaussian truncated to 10 samples, not a full Gaussian kernel).
2 Kommentare
Abdullah Al Shereiqi
am 20 Aug. 2020
Can i got more details about the mathematical model of Gaussian? Or making an example to get the new point for different data points?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Polynomials finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!