How would I create a JFreeChart scatterplot best fit line

被刻印的时光 ゝ 提交于 2019-12-02 04:11:35
trashgod

Use the built-in Regression method getOLSRegression() or a statistical library such as Apache Commons Math to determine the slope and intercept of such a line using simple regression. Add your original data to a scatter plot, as shown here. Add an XYLineAnnotation representing the endpoints of your line, as shown here.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!