suppose there is a sample data of a randam variable stored in a double array, double[] x. How do we plot the histogram for this sample? Thanks for help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
use jmathtools instead of jmathplot.
declare in classpath jmathplot-20050222.jar and jmathstat-20050222.jar
then import org.math.plot.* and org.math.statistics.process
and finally use
new Plot2DPanel(Sample.histogram_classes(yourdata),...);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
suppose there is a sample data of a randam variable stored in a double array, double[] x. How do we plot the histogram for this sample? Thanks for help.
use jmathtools instead of jmathplot.
declare in classpath jmathplot-20050222.jar and jmathstat-20050222.jar
then import org.math.plot.* and org.math.statistics.process
and finally use
new Plot2DPanel(Sample.histogram_classes(yourdata),...);