MATLAB Answers

when smoothing data with gaussian how to define sd and mean

25 ビュー (過去 30 日間)
Affi Jess
Affi Jess 2019 年 7 月 11 日
コメント済み: Affi Jess 2019 年 7 月 14 日
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 件のコメント

サインイン to comment.

採用された回答

Chris Turnes
Chris Turnes 2019 年 7 月 12 日
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).

  1 件のコメント

Affi Jess
Affi Jess 2019 年 7 月 14 日
Dear Chris Thanks very much for your answer. Solve my problem.

サインイン to comment.

その他の回答 (0 件)

サインイン してこの質問に回答します。


Translated by