|
EGSnrc C++ class library
Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
|
Spline coefficient struct returned by fscof(). More...
#include <estar.h>
Public Member Functions | |
| scof (int n) | |
Public Attributes | |
| std::vector< double > | a |
| std::vector< double > | b |
| std::vector< double > | c |
| std::vector< double > | d |
Spline coefficient struct returned by fscof().
Holds the four cubic spline coefficient arrays for a natural cubic spline fit to the density correction data d[] on the knot grid x[]. The spline is evaluated by fbspol() using Horner's method:
delta(s) = ((d[i]*(s-x[i]) + c[i])*(s-x[i]) + b[i])*(s-x[i]) + a[i]
where i is the index of the bracketing interval.
| std::vector<double> scof::a |
| std::vector<double> scof::b |
| std::vector<double> scof::c |
| std::vector<double> scof::d |
1.9.1