Much like in Excel where we can take a distribution and make a trendline for it (power law), how can I calculate that in Java for an array of numbers?

有帮助吗?

解决方案

The package org.apache.commons.math.optimization.fitting includes CurveFitter and PolynomialFitter that will cover many of the typical excel trend line options. JFreechart includes some support for Regression.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top