{"id":2239,"date":"2019-06-19T11:00:41","date_gmt":"2019-06-19T10:00:41","guid":{"rendered":"https:\/\/solidt.eu\/site\/?p=2239"},"modified":"2022-07-25T08:35:43","modified_gmt":"2022-07-25T07:35:43","slug":"javascript-regression-library","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/javascript-regression-library\/","title":{"rendered":"Javascript regression library"},"content":{"rendered":"\n<p><a href=\"http:\/\/tom-alexander.github.io\/regression-js\/\">http:\/\/tom-alexander.github.io\/regression-js\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/Tom-Alexander\/regression-js\">https:\/\/github.com\/Tom-Alexander\/regression-js<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/Tom-Alexander\/regression-js\/blob\/master\/src\/regression.js\">https:\/\/github.com\/Tom-Alexander\/regression-js\/blob\/master\/src\/regression.js<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>regression.polynomial(data[, options])<\/code><\/h3>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/camo.githubusercontent.com\/8fa7202280af36755c8709971536086a92d289c1\/687474703a2f2f6d61746875726c2e636f6d2f68787a3534336f2e706e67\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/camo.githubusercontent.com\/8fa7202280af36755c8709971536086a92d289c1\/687474703a2f2f6d61746875726c2e636f6d2f68787a3534336f2e706e67\" alt=\"anx^n ... + a1x + a0\"\/><\/a><\/figure>\n\n\n\n<p>Fits the input data to a polynomial curve with the equation&nbsp;. It returns the coefficients in the form&nbsp;<code>[an..., a1, a0]<\/code>. The order can be configure with the&nbsp;<code>order<\/code>&nbsp;option.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/Tom-Alexander\/regression-js#example\"><\/a>Example<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\">const data = [[0,1],[32, 67] .... [12, 79]];\nconst result = regression.polynomial(data, { order: 3 });<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/tom-alexander.github.io\/regression-js\/ https:\/\/github.com\/Tom-Alexander\/regression-js https:\/\/github.com\/Tom-Alexander\/regression-js\/blob\/master\/src\/regression.js regression.polynomial(data[, options]) Fits the input data to a polynomial curve with the equation&nbsp;. It returns the coefficients in the form&nbsp;[an&#8230;, a1, a0]. The order can be configure with the&nbsp;order&nbsp;option. Example const data = [[0,1],[32, 67] &#8230;. [12, 79]]; const result = regression.polynomial(data, { order: 3 });<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[5,4,1],"tags":[],"class_list":["post-2239","post","type-post","status-publish","format-standard","hentry","category-javascript","category-programming","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/2239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=2239"}],"version-history":[{"count":5,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/2239\/revisions"}],"predecessor-version":[{"id":2246,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/2239\/revisions\/2246"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=2239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=2239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=2239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}