|
Bridge++
Version 1.5.4
|
Determionation of coefficients of rational approximation. More...
#include <math_Rational.h>
Public Member Functions | |
| Math_Rational () | |
| void | set_parameters (const Parameters ¶ms) |
| void | set_parameters (const int Np, const int n_exp, const int d_exp, const double x_min, const double x_max) |
| void | get_parameters (double &norm, std::vector< double > &res, std::vector< double > &pole) |
| void | set_parameter_verboselevel (const Bridge::VerboseLevel vl) |
| double | func (const double x) |
Static Public Attributes | |
| static const std::string | class_name = "Math_Rational" |
Protected Attributes | |
| Bridge::VerboseLevel | m_vl |
Private Member Functions | |
| void | set_coeff () |
| void | read_file () |
Private Attributes | |
| int | m_Np |
| int | m_n_exp |
| int | m_d_exp |
| double | m_x_min |
| double | m_x_max |
| double | m_norm |
| double | m_error |
| std::vector< double > | m_res |
| std::vector< double > | m_pole |
Determionation of coefficients of rational approximation.
At present, the coefficients are determined outside this code system and saved to a file. This class reads the file to set the coefficients. In future, self-calculation should be implemented. 28 Dec 2011 H.Matsufuru YAML is implemented. [14 Nov 2012 Y.Namekawa]
Definition at line 40 of file math_Rational.h.
|
inline |
Definition at line 56 of file math_Rational.h.
| double Math_Rational::func | ( | const double | x | ) |
Definition at line 179 of file math_Rational.cpp.
| void Math_Rational::get_parameters | ( | double & | norm, |
| std::vector< double > & | res, | ||
| std::vector< double > & | pole | ||
| ) |
Definition at line 86 of file math_Rational.cpp.
|
private |
Definition at line 115 of file math_Rational.cpp.
|
private |
Definition at line 108 of file math_Rational.cpp.
|
inline |
Definition at line 66 of file math_Rational.h.
| void Math_Rational::set_parameters | ( | const Parameters & | params | ) |
Definition at line 20 of file math_Rational.cpp.
| void Math_Rational::set_parameters | ( | const int | Np, |
| const int | n_exp, | ||
| const int | d_exp, | ||
| const double | x_min, | ||
| const double | x_max | ||
| ) |
Definition at line 47 of file math_Rational.cpp.
|
static |
Definition at line 43 of file math_Rational.h.
|
private |
Definition at line 49 of file math_Rational.h.
|
private |
Definition at line 51 of file math_Rational.h.
|
private |
Definition at line 49 of file math_Rational.h.
|
private |
Definition at line 51 of file math_Rational.h.
|
private |
Definition at line 49 of file math_Rational.h.
|
private |
Definition at line 53 of file math_Rational.h.
|
private |
Definition at line 52 of file math_Rational.h.
|
protected |
Definition at line 46 of file math_Rational.h.
|
private |
Definition at line 50 of file math_Rational.h.
|
private |
Definition at line 50 of file math_Rational.h.