CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Spline.h
Go to the documentation of this file.
1 #ifndef SPLINE_H
2 #define SPLINE_H
3 
4 #include <vector>
8 
10 {
11 protected:
13  std::vector<std::vector<double> > A;
14  std::vector<double> B;
15 public:
16  double a,b,c,d;
17  SplineClass();
18  bool build(void);
19  bool add_value_constraint(double x, double y);
20  void add_4value_constraints(double x1, double x2, double x3, double x4, double y1, double y2, double y3, double y4);
21  bool add_derivative_constraint(double x, double dydx);
22  double evaluate(double x);
23 };
24 
25 #endif
SplineClass()
Definition: Spline.cpp:7
double a
Definition: Spline.h:16
std::vector< double > B
Definition: Spline.h:14
double d
Definition: Spline.h:16
std::vector< double > x(ncmax, 0)
double evaluate(double x)
Definition: Spline.cpp:62
bool add_value_constraint(double x, double y)
Definition: Spline.cpp:29
std::vector< std::vector< double > > A
Definition: Spline.h:13
void add_4value_constraints(double x1, double x2, double x3, double x4, double y1, double y2, double y3, double y4)
Definition: Spline.cpp:42
double b
Definition: Spline.h:16
int Nconstraints
Definition: Spline.h:12
bool add_derivative_constraint(double x, double dydx)
Definition: Spline.cpp:49
double c
Definition: Spline.h:16
bool build(void)
Definition: Spline.cpp:13