Bridge++  Version 1.4.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
math_Rational.h
Go to the documentation of this file.
1 
14 #ifndef MATH_RATIONAL_INCLUDED
15 #define MATH_RATIONAL_INCLUDED
16 
17 #include <fstream>
18 #include <cmath>
19 #include <cassert>
20 
21 #include "Parameters/parameters.h"
23 
24 #include "IO/bridgeIO.h"
25 using Bridge::vout;
26 
28 
42 {
43  public:
44  static const std::string class_name;
45 
46  protected:
48 
49  private:
51  double m_x_min, m_x_max;
52  double m_norm, m_error;
53  std::vector<double> m_res;
54  std::vector<double> m_pole;
55 
56  public:
58  : m_vl(CommonParameters::Vlevel()) {}
59 
60  void set_parameters(const Parameters& params);
61  void set_parameters(const int Np, const int n_exp, const int d_exp,
62  const double x_min, const double x_max);
63 
64  void get_parameters(double& norm, std::vector<double>& res,
65  std::vector<double>& pole);
66 
68 
69  double func(double x);
70 
71  private:
72  void set_coeff();
73  void read_file();
74 };
75 #endif
void get_parameters(double &norm, std::vector< double > &res, std::vector< double > &pole)
BridgeIO vout
Definition: bridgeIO.cpp:495
static const std::string class_name
Definition: math_Rational.h:44
void set_parameters(const Parameters &params)
Class for parameters.
Definition: parameters.h:46
Determionation of coefficients of rational approximation.
Definition: math_Rational.h:41
std::vector< double > m_pole
Definition: math_Rational.h:54
double func(double x)
Common parameter class: provides parameters as singleton.
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
Definition: math_Rational.h:67
Bridge::VerboseLevel m_vl
Definition: math_Rational.h:47
Bridge::VerboseLevel vl
Definition: checker.cpp:18
VerboseLevel
Definition: bridgeIO.h:42
std::vector< double > m_res
Definition: math_Rational.h:53