Bridge++  Version 1.5.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 
41 {
42  public:
43  static const std::string class_name;
44 
45  protected:
47 
48  private:
50  double m_x_min, m_x_max;
51  double m_norm, m_error;
52  std::vector<double> m_res;
53  std::vector<double> m_pole;
54 
55  public:
57  : m_vl(CommonParameters::Vlevel()) {}
58 
59  void set_parameters(const Parameters& params);
60  void set_parameters(const int Np, const int n_exp, const int d_exp,
61  const double x_min, const double x_max);
62 
63  void get_parameters(double& norm, std::vector<double>& res,
64  std::vector<double>& pole);
65 
67 
68  double func(const double x);
69 
70  private:
71  void set_coeff();
72  void read_file();
73 };
74 #endif
void get_parameters(double &norm, std::vector< double > &res, std::vector< double > &pole)
BridgeIO vout
Definition: bridgeIO.cpp:503
static const std::string class_name
Definition: math_Rational.h:43
void set_parameters(const Parameters &params)
Class for parameters.
Definition: parameters.h:46
Determionation of coefficients of rational approximation.
Definition: math_Rational.h:40
std::vector< double > m_pole
Definition: math_Rational.h:53
Common parameter class: provides parameters as singleton.
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
Definition: math_Rational.h:66
Bridge::VerboseLevel m_vl
Definition: math_Rational.h:46
Bridge::VerboseLevel vl
VerboseLevel
Definition: bridgeIO.h:42
std::vector< double > m_res
Definition: math_Rational.h:52
double func(const double x)