EGSnrc C++ class library  Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
Public Member Functions | Public Attributes | List of all members
scof Struct Reference

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
 

Detailed Description

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.

Definition at line 189 of file estar.h.

Member Data Documentation

◆ a

std::vector<double> scof::a

Zeroth-order spline coefficients (function values).

Definition at line 190 of file estar.h.

Referenced by fscof().

◆ b

std::vector<double> scof::b

First-order spline coefficients.

Definition at line 191 of file estar.h.

Referenced by fscof().

◆ c

std::vector<double> scof::c

Second-order spline coefficients.

Definition at line 192 of file estar.h.

Referenced by fscof().

◆ d

std::vector<double> scof::d

Third-order spline coefficients.

Definition at line 193 of file estar.h.

Referenced by fscof().


The documentation for this struct was generated from the following file: