BSMPT 3.0.7
BSMPT - Beyond the Standard Model Phase Transitions : A C++ package for the computation of the EWPT in BSM models
Loading...
Searching...
No Matches
tk::spline Class Reference

Public Types

enum  spline_type { linear = 10 , cspline = 30 , cspline_hermite = 31 }
 
enum  bd_type { first_deriv = 1 , second_deriv = 2 , not_a_knot = 3 }
 

Public Member Functions

 spline (const std::vector< double > &X, const std::vector< double > &Y, spline_type type=cspline, bool make_monotonic=false, bd_type left=second_deriv, double left_value=0.0, bd_type right=second_deriv, double right_value=0.0)
 
void set_boundary (bd_type left, double left_value, bd_type right, double right_value)
 
void set_points (const std::vector< double > &x, const std::vector< double > &y, spline_type type=cspline)
 
bool make_monotonic ()
 
double operator() (double x) const
 
double deriv (int order, double x) const
 
std::vector< double > solve (double y, bool ignore_extrapolation=true) const
 
std::vector< double > get_x () const
 
std::vector< double > get_y () const
 
double get_x_min () const
 
double get_x_max () const
 

Protected Member Functions

void set_coeffs_from_b ()
 
size_t find_closest (double x) const
 

Protected Attributes

std::vector< double > m_x
 
std::vector< double > m_y
 
std::vector< double > m_b
 
std::vector< double > m_c
 
std::vector< double > m_d
 
double m_c0
 
spline_type m_type
 
bd_type m_left
 
bd_type m_right
 
double m_left_value
 
double m_right_value
 
bool m_made_monotonic
 

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