Notch filter curve in list

Frans-Jan Wind's icon

Hello,

I'm trying to create a list where the values are the Y-axis values of a normal like distribution. My math is just not good enough to accomplish this. Ideally there would be two parameters, one for the mean (or center frequency) and one for the with of distribution. Typically this would look like a notch filter graph. In the pasted patch you can see I'm completely stuck in the [expr] function.

Max Patch
Copy patch and select New From Clipboard in Max.

I would appreciate if someone with more math knowledge could give me a hand with the functions to use in the expression

Thank you
Frans-Jan Wind

Dimitri Aatos's icon

Wouldn't the actual normal distribution do?
Here it is written in expr syntax(1/($f3*sqrt(2*3.141593)))*pow(2.718282, -0.5*pow(($f1-$f2)/$f3, 2))

Dimitri Aatos's icon

Perhaps adding a [pow 0.01] after the [expr] might be useful, otherwise the gain is very low.