template<class A> class Newton
x_i+1=x_i-gamma*(y_i/y'_i)
Inheritance:
Public Methods
-
Newton()
-
virtual ~Newton()
-
void SetNIterMax(int n)
-
void SetEpsilon(double e)
-
void SetDampingFactor(double g)
- CAUTION: Threshold depends on absolute value of x
-
int FindRoot(double &x, A &c)
Protected Methods
-
virtual double dfdx(double x, A &)
- Functions to be redefined when derive thiese classes for real use.
-
virtual double fx(double x, A &)
Private Fields
-
double gamma
- this function makes one estimation.
-
double epsilon
- damping factor (<=1.
-
int NIterMax
- threshold
-
Max number of iterations
Private Methods
-
int FindNextRoot(double &x, A &c)
Documentation
x_i+1=x_i-gamma*(y_i/y'_i)
Newton()
virtual ~Newton()
void SetNIterMax(int n)
void SetEpsilon(double e)
void SetDampingFactor(double g)
- CAUTION: Threshold depends on absolute value of x
int FindRoot(double &x, A &c)
virtual double dfdx(double x, A &)
- Functions to be redefined when derive thiese classes for real use. If they are not derived, return 0
virtual double fx(double x, A &)
int FindNextRoot(double &x, A &c)
double gamma
- this function makes one estimation. Returns 0 if OK, 1 if df/dx=0.0
double epsilon
- damping factor (<=1. if =1, no damping)
int NIterMax
- threshold
Max number of iterations
- Max number of iterations
- Direct child classes:
- Rotor_NewtonMethod
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.