c# draw a bell curve from a mean and a standard deviation
===

Is there a way to generate a Bell curve from a standard deviation and a mean?  I have read reference to this but cant find an algorthym.


I have a list of numbers,  they are pre-normalised look ups (score=>percentile).  Which I have ranged and I need to draw a bell curve from so that I can colour sections of area under the curve to represent scores on charts (an area chart I suppose / infrographic esk).  I am stuck at the first hurdle really.  

I planned to draw a historgram by ranging the data in the following way:

    int count = data.Count-1;  

            for (int i = 0; i < count; i++ )
            {
                data[i] = data[i + 1] - data[i]; //range
            }

            data[data.Count - 1] = 0; //make sure the curve comes back to 0


![Non normal data][1]

I need to draw a Bell Curve from this data. But not all of the datasets follow a normal deviation as in the output above.

So what would be the best approach for getting this data into a bell curve?

Can I use the standard deviation and mean of the data to calculate n coordinates along a curve, and then transpose scores onto that curve to build the charts?

or..  Should I be trying to normalise the existing data into a curve, and then interpolating adiitonal values into the dataset to make the output smooth?

Thanks for any help!




  [1]: http://i.stack.imgur.com/qRkvR.png