Menu

how to plot a histogram

2005-01-26
2013-03-22
  • Nobody/Anonymous

    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.

     
    • Nobody/Anonymous

      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),...);

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.