开发者

Algorithm to get approximate equation of a graph based on a set of points [closed]

开发者 https://www.devze.com 2023-03-07 21:13 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I have a MySQL database with a variety of constantly updating data sets that开发者_如何转开发 are generally matchable to a linear or quadratic-type pattern. Are there any existing libraries, preferentially with PHP, that I can use to estimate an equation from a set of data points for predicting future data points?


Can't answer about the libraries, but the basic process in "Linear Regression". The process isn't that difficult, so you can probably write your own fairly quickly. As an aside, Postgres can has statistic functions built in that do that, MySQL might has something like that. At least now you know what to look for.

0

精彩评论

暂无评论...
验证码 换一张
取 消