views:

413

answers:

2

Hi, I need to generate a Gaussian graph (bell curve) using a given average and standard deviation. How can this be completed in C#? If it can be completed in Classic ASP - even better :)

Thanks, Roman

A: 

Do you absolutely need to generate an image on the fly with Asp ? If not you might be looking at the silverlight/flash charts that already exists such as http://www.fusioncharts.com/ or http://www.amcharts.com/ ?

Erick
I tried to look in this chart solutions - but none can get an AVG and StdDEV and generate a graph.I'll need to generate normal distribution points and then send them to the graph.I hoped it could be made simpler.
Roman
+2  A: 

I would manually generate the values using the forumulas from this page then use Google Charts to render it on the client. This would work in C# or classic ASP.

David
This is a great idea - it seems that this could solve it.Though the formulas from that page are in Excel, not C# or ASP (VBScript). If you know of any formulas in ASP for this, it could really help.Thanks
Roman
Here's the math formula that Excel's NORMDIST function uses: http://msdn.microsoft.com/en-us/library/bb239430.aspx
David