DoG, fit first derivative of Gaussian

Fits first derivative of Gaussian to x,y-data
199 Downloads
Updated 6 Feb 2019

View License

[ALPHA,SIGMA, AMP] = DOG(X,Y) fits first derivative of Gaussian to
x,y-data by minimizing the sum of squared residuals. The output parameter
ALPHA controls amplitude and SIGMA is the standard deviation of the
Gaussian distribution and controls width of the resulting curve, given by
y = normpdf(x,0,SIGMA).*x.*ALPHA. AMP is the peak amplitude.

Is often used in research on serial dependence, e.g. doi:10.1038/nn.3689

Cite As

Tobias Johansson (2024). DoG, fit first derivative of Gaussian (https://www.mathworks.com/matlabcentral/fileexchange/70203-dog-fit-first-derivative-of-gaussian), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear and Nonlinear Regression in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.3

Adjusted example so as not to rely on Statistics Toolbox

1.0.2

Removed reliance on Statistics Toolbox

1.0.1

Added image

1.0.0