|
bar chart statistiscs |
Posted by margherita on May-15-2013 02:14 |
|
Hello,
i have a bar chart that represents an histogram with a distribution that is almost a gaussian type;
i was wondering if chartdirector provides methods to return values for mean, sigma etc, so, in general,
statistics info or i have to calculate them myself.
Thank you very much for some feedback, best regards
Margherita |
Re: bar chart statistiscs |
Posted by Peter Kwan on May-15-2013 23:50 |
|
Hi Margherita,
You may use ArrayMath.avg to obtain the average value of a sequence of numbers, and ArrayMath.stdDev to obtain its standard deviation. For example, in C#/Java:
ArrayMath m = new ArrayMath(myData);
double mean = m.avg();
double sigma = m.stdDev();
Hope this can help.
Regards
Peter Kwan |
|