MIDSX 0.1
A x-ray transport code system for dosimetry
|
Class which performs linear interpolation. More...
#include <interpolators.h>
Public Member Functions | |
Linear (const Eigen::Matrix< double, Eigen::Dynamic, 2 > &data) | |
Constructor for the Linear class. | |
double | operator() (double x) const override |
Performs linear interpolation. | |
Private Member Functions | |
bool | isXSmallerThanMin (double x) const |
bool | isXBiggerThanMax (double x) const |
int | findIndexOfNextLargestValue (double x) const |
double | calculateInterpolatedY (int idx, double x) const |
Private Attributes | |
Eigen::VectorXd | x_vec_ |
Eigen::VectorXd | y_vec_ |
Class which performs linear interpolation.
Definition at line 79 of file interpolators.h.
Constructor for the Linear class.
data | A 2 column matrix containing the x and y values to be interpolated. |
Performs linear interpolation.
x | The x value to be interpolated. |
Implements Interpolator::Interpolator.
Reimplemented in Interpolator::LogLogLinear.
|
private |
Definition at line 97 of file interpolators.h.
|
private |
Definition at line 98 of file interpolators.h.