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
Citation pour cette source
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. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
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 |