text: Maths › Approximation › Regression ›
  Parabolic
  Approximates an arbitrary function using parabolic least squares fitting.Controller: CodeCogs
  Interface
  C++
  Excel
  HTML
  Class ParabolicThis class approximates an arbitrary function using a polynomial of degree 2, which makes it more suitable for approximating parabola-shaped graphs. The algorithm finds the coefficients a, b and c such that the following quadratic function fits the given set of points with a minimum error, in terms of leasts squares minimization
  References:
  - Jean-Pierre Moreau's Home Page,
  - F.R. Ruckdeschel, "BASIC Scientific Subroutines", Vol. II, BYTE/McGRAWW-HILL, 1981
  Example 1
  - The following example displays 10 approximated/regression/parabolic.h> #include <cmath> #include <iostream> #include <iomanip> using namespace std; #define PI 3.1415926535897932384626433832795  regression approximation routine with known data points Maths::Regression::Parabolic A(N, x, y); // = 0.0202138 x = 4.18879 y = 0.196758 x = 5.23599 y = 0.313613 x = 6.28319 y = 0.370778 x = 7.33038 y = 0.368253 x = 8.37758 y = 0.306039 x = 9.42478 y = 0.184135 x = 10.472 y = 0.00254086 x = 11.5192 y = -0.238743 x = 12.5664 y = -0.539716
  Authors
  - Lucian Bentea (August 2005)
  Source Code
  Source code is available when you agree to a GP Licence or buy a Commercial Licence.
  Not a member, then Register with CodeCogs. Already a Member, then Login.
  Members of Parabolic
  ParabolicInitializes the necessary data for following evaluations of the quadratic.
  GetValueReturns the approximated ordinate at the given abscissa.
  Parabolic Once
  This function implements the Parabolic class for one off calculations, thereby avoid the need to instantiate the Parabolic class yourself.
  Example 2
  - The following graph fits a parabola to these.