# I A Function for multiple 2D Gaussians

Tags:
1. Mar 9, 2017

### ThunderLight

I'm trying to put together a function that sums multiple 2D Gaussian functions in one graph (i.e.; multiple Gaussian pyramids).

So far from my research, I formed the following function definition:

I'm not sure if my research led me to the correct way of forming the function. Is this how Gaussians can be represented to give me a graph of multiple Gaussians in one surface?

2. Mar 9, 2017

### BvU

Yes. Kind of a landscape pocked with lots of hills.

3. Mar 9, 2017

### ThunderLight

Yes, that's what I'm looking for. But I'm worried about the notation, and placement of the i
Is it also correct for me to say ΣGaussians to represent how many hills, n? - Or there's a more formal notation for that?

4. Mar 9, 2017

### BvU

Yes, I would say $n$ is the count of the hills. You confuse the issue somewhat by using the symbol $f$ twice.

5. Mar 9, 2017

### ThunderLight

Would it be more proper/clearer to use only the first $f$ and go on directly to saying $=...$ instead of redefining what $f$ function is?

Last edited: Mar 9, 2017
6. Mar 9, 2017

### BvU

Either that, or you use a symbol g for a single gaussian:

I take it you want to pass $f$ to a surface plot program or something.

7. Mar 9, 2017

### Staff: Mentor

I would put the index i next to the function name: $g_i(x,y)$

"f(gaussians)" doesn't make sense. f is a function of x and y: f(x,y).

8. Mar 11, 2017

### ThunderLight

Great, thank you for your tip.

9. Mar 11, 2017

### ThunderLight

I just realised that, thank you for pointing this out. You're right.
Thank you very much