Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Math_Rational Class Reference

Determionation of coefficients of rational approximation. More...

#include <math_Rational.h>

Public Member Functions

 Math_Rational ()
 
void set_parameters (const Parameters &params)
 
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
 

Detailed Description

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.

Constructor & Destructor Documentation

Math_Rational::Math_Rational ( )
inline

Definition at line 56 of file math_Rational.h.

Member Function Documentation

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.

void Math_Rational::read_file ( )
private

Definition at line 115 of file math_Rational.cpp.

void Math_Rational::set_coeff ( )
private

Definition at line 108 of file math_Rational.cpp.

void Math_Rational::set_parameter_verboselevel ( const Bridge::VerboseLevel  vl)
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.

Member Data Documentation

const std::string Math_Rational::class_name = "Math_Rational"
static

Definition at line 43 of file math_Rational.h.

int Math_Rational::m_d_exp
private

Definition at line 49 of file math_Rational.h.

double Math_Rational::m_error
private

Definition at line 51 of file math_Rational.h.

int Math_Rational::m_n_exp
private

Definition at line 49 of file math_Rational.h.

double Math_Rational::m_norm
private

Definition at line 51 of file math_Rational.h.

int Math_Rational::m_Np
private

Definition at line 49 of file math_Rational.h.

std::vector<double> Math_Rational::m_pole
private

Definition at line 53 of file math_Rational.h.

std::vector<double> Math_Rational::m_res
private

Definition at line 52 of file math_Rational.h.

Bridge::VerboseLevel Math_Rational::m_vl
protected

Definition at line 46 of file math_Rational.h.

double Math_Rational::m_x_max
private

Definition at line 50 of file math_Rational.h.

double Math_Rational::m_x_min
private

Definition at line 50 of file math_Rational.h.


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