Skip to content

Instantly share code, notes, and snippets.

@judfs
judfs / PolynomialRegression.h
Last active August 27, 2021 18:45 — forked from chrisengelsma/PolynomialRegression.h
Polynomial Regression (Quadratic Fit) in C++
#pragma once
/**
* https://gist.github.com/chrisengelsma/108f7ab0a746323beaaf7d6634cf4add
*
* PURPOSE:
*
* Polynomial Regression aims to fit a non-linear relationship to a set of
* points. It approximates this by solving a series of linear equations using
* a least-squares approach.
*