when smoothing data with gaussian how to define sd and mean

조회 수: 8 (최근 30일)
Affi Jess
Affi Jess 2019년 7월 11일
댓글: Abdullah Al Shereiqi 2020년 8월 20일
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.

채택된 답변

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).
  댓글 수: 2
Affi Jess
Affi Jess 2019년 7월 14일
Dear Chris Thanks very much for your answer. Solve my problem.
Abdullah Al Shereiqi
Abdullah Al Shereiqi 2020년 8월 20일
Can i got more details about the mathematical model of Gaussian? Or making an example to get the new point for different data points?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by