NASA NTRS ยท 20210015894
PolyFit: A C++ code for Polynomial Curve Fit with Calculation of Error Bars
Abstract
In radiobiology, many dose-response results are modeled using the so-called linear-quadratic(LQ)model, which means that results are modeled as a function of dose Das ๐ (๐ท)=๐ฝ0+๐ฝ1๐ท+๐ฝ2๐ท2. The coefficients ๐ฝ0, ๐ฝ1and ๐ฝ2are obtained from fitting a series of data points (๐ฅ๐,๐ฆ๐), which is usually done using a least-square method. The LQ and more generally the polynomial fit capability is implemented in many software that analyzes data. However, it is often convenient to do the fitting programmatically, especially when a large number of datasets should be analyzed. Furthermore, depending on the software used, some features may not be implemented. In this mini-review, I discuss the basis of polynomial fitting, including the calculation of errors on the coefficients and results, use of weighting and fixing the intercept value (the coefficient ๐ฝ0). A simple C++ code to perform the polynomial curve fitting is also provided. This code should be useful not only in radiobiology but in other fields of science as well.
Keep this discovery
Explore connections, maps & timelines
Ianik Plante. 2021-06-11. PolyFit: A C++ code for Polynomial Curve Fit with Calculation of Error Bars. https://ntrs.nasa.gov/citations/20210015894
Cite the original work for its findings. Save a collection to share your selection of sources.