|
re: Area under normal distribution |
Posted by Ming on Feb-01-2013 04:03 |
|
Hello Peter,
I am using chart director in java , and I wonder if we have a function to shade the area under normal distribution? I have searched but have not came upon one.
I really appreciate if you happen to know where i can look at.
Thanks so much in advance,
Ming |
re: Area under normal distribution |
Posted by Peter Kwan on Feb-01-2013 23:54 |
|
Hi Ming,
A normal distribution is a standard function. The points on the normal distribution can be obtained by looking up the normal distribution table. To plot a normal distribution curve, you just need to pick a few points (8 to 16 points is OK), and then use a spline curve to join them.
To fill the region under the curve, you may use an InterLineLayer to fill the region between the curve and the y=0 mark line (created using Axis.addMark). A simple example is at:
http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1257515780
Hope this can help.
Regards
Peter Kwan |
|