MIDSX 0.1
A x-ray transport code system for dosimetry
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Interpolator::Spline Class Reference

Class which performs 3rd order spline interpolation. More...

#include <interpolators.h>

Collaboration diagram for Interpolator::Spline:

Public Member Functions

 Spline (const Eigen::MatrixXd &data)
 Constructor for the Spline class.
 
double operator() (double x) const override
 Performs 3rd order spline interpolation.
 

Private Member Functions

double scaledValue (double x) const
 
Eigen::RowVectorXd scaledValues (Eigen::VectorXd const &x_vec) const
 

Private Attributes

Eigen::VectorXd x_vec_
 
Eigen::VectorXd y_vec_
 
double x_min_ = 0.0
 
double x_max_ = 0.0
 
Eigen::Spline< double, 1 > spline_
 

Detailed Description

Class which performs 3rd order spline interpolation.

Definition at line 26 of file interpolators.h.

Constructor & Destructor Documentation

◆ Spline()

Interpolator::Spline::Spline ( const Eigen::MatrixXd & data)
explicit

Constructor for the Spline class.

Parameters
dataA 2 column matrix containing the x and y values to be interpolated.

Member Function Documentation

◆ operator()()

double Interpolator::Spline::operator() ( double x) const
overridevirtual

Performs 3rd order spline interpolation.

Parameters
xThe x value to be interpolated.
Returns
The interpolated y value.

Implements Interpolator::Interpolator.

Member Data Documentation

◆ spline_

Eigen::Spline<double, 1> Interpolator::Spline::spline_
private

Definition at line 51 of file interpolators.h.

◆ x_max_

double Interpolator::Spline::x_max_ = 0.0
private

Definition at line 50 of file interpolators.h.

◆ x_min_

double Interpolator::Spline::x_min_ = 0.0
private

Definition at line 49 of file interpolators.h.

◆ x_vec_

Eigen::VectorXd Interpolator::Spline::x_vec_
private

Definition at line 47 of file interpolators.h.

◆ y_vec_

Eigen::VectorXd Interpolator::Spline::y_vec_
private

Definition at line 48 of file interpolators.h.


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