Public Member Functions | Private Member Functions | Private Attributes | List of all members
f2c::CubicSpline Class Reference

#include <spline.h>

Public Member Functions

 CubicSpline ()
 
 CubicSpline (const std::vector< double > &x, const std::vector< double > &y, bool monotonic=false)
 
double operator() (double x) const
 
void SetPoints (const std::vector< double > &x, const std::vector< double > &y, bool monotonic=false)
 
 ~CubicSpline ()
 

Private Member Functions

void check_error (bool cond, const std::string &msg) const
 
void SetSpline ()
 
void SetSplineCubic ()
 

Private Attributes

std::vector< double > b_vec_
 
std::vector< double > c_vec_
 
std::vector< double > d_vec_
 
bool monotonic_ {false}
 
size_t size_ {0}
 
std::vector< double > x_vec_
 
std::vector< double > y_vec_
 

Detailed Description

Definition at line 44 of file spline.h.

Constructor & Destructor Documentation

◆ CubicSpline() [1/2]

f2c::CubicSpline::CubicSpline ( )
default

◆ CubicSpline() [2/2]

f2c::CubicSpline::CubicSpline ( const std::vector< double > &  x,
const std::vector< double > &  y,
bool  monotonic = false 
)

Definition at line 46 of file spline.cpp.

◆ ~CubicSpline()

f2c::CubicSpline::~CubicSpline ( )
default

Member Function Documentation

◆ check_error()

void f2c::CubicSpline::check_error ( bool  cond,
const std::string &  msg 
) const
private

Definition at line 195 of file spline.cpp.

◆ operator()()

double f2c::CubicSpline::operator() ( double  x) const

Definition at line 88 of file spline.cpp.

◆ SetPoints()

void f2c::CubicSpline::SetPoints ( const std::vector< double > &  x,
const std::vector< double > &  y,
bool  monotonic = false 
)

Definition at line 68 of file spline.cpp.

◆ SetSpline()

void f2c::CubicSpline::SetSpline ( )
private

Definition at line 111 of file spline.cpp.

◆ SetSplineCubic()

void f2c::CubicSpline::SetSplineCubic ( )
private

Definition at line 115 of file spline.cpp.

Member Data Documentation

◆ b_vec_

std::vector<double> f2c::CubicSpline::b_vec_
private

Definition at line 61 of file spline.h.

◆ c_vec_

std::vector<double> f2c::CubicSpline::c_vec_
private

Definition at line 61 of file spline.h.

◆ d_vec_

std::vector<double> f2c::CubicSpline::d_vec_
private

Definition at line 61 of file spline.h.

◆ monotonic_

bool f2c::CubicSpline::monotonic_ {false}
private

Definition at line 63 of file spline.h.

◆ size_

size_t f2c::CubicSpline::size_ {0}
private

Definition at line 59 of file spline.h.

◆ x_vec_

std::vector<double> f2c::CubicSpline::x_vec_
private

Definition at line 60 of file spline.h.

◆ y_vec_

std::vector<double> f2c::CubicSpline::y_vec_
private

Definition at line 60 of file spline.h.


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


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31