Mercurial > repos > public > sbplib
annotate gaussian.m @ 1136:eee71789f13b feature/laplace_curvilinear_test
Add LaplaceCurvilinear schemes where the minimum check will be implemented. The Virta scheme will be used for comparison only.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Mon, 10 Jun 2019 10:43:12 +0200 |
parents | 6514c3b94721 |
children |
rev | line source |
---|---|
576
705658c55229
Add function for gaussian bumb
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
1 function z = gaussian(x,x0,d) |
654
6514c3b94721
Make gaussian work for vector inputs
Jonatan Werpers <jonatan@werpers.com>
parents:
576
diff
changeset
|
2 z = exp(-sum((x-x0).^2,2)/d^2); |
576
705658c55229
Add function for gaussian bumb
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
3 end |