DoG, fit first derivative of Gaussian
[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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.