#include <Dekker.hpp>
Inherits nc::roots::Iteration.
|
| Dekker (const double epsilon, const uint32 maxNumIterations, std::function< double(double)> f) noexcept |
|
| Dekker (const double epsilon, std::function< double(double)> f) noexcept |
|
| ~Dekker () override=default |
|
uint32 | numIterations () const noexcept |
|
double | solve (double a, double b) |
|
Dekker root finding method
◆ Dekker() [1/2]
nc::roots::Dekker::Dekker |
( |
const double |
epsilon, |
|
|
std::function< double(double)> |
f |
|
) |
| |
|
inlinenoexcept |
Constructor
- Parameters
-
epsilon | the epsilon value |
f | the function |
◆ Dekker() [2/2]
nc::roots::Dekker::Dekker |
( |
const double |
epsilon, |
|
|
const uint32 |
maxNumIterations, |
|
|
std::function< double(double)> |
f |
|
) |
| |
|
inlinenoexcept |
Constructor
- Parameters
-
epsilon | the epsilon value |
maxNumIterations | the maximum number of iterations to perform |
f | the function |
◆ ~Dekker()
nc::roots::Dekker::~Dekker |
( |
| ) |
|
|
overridedefault |
◆ incrementNumberOfIterations()
void nc::roots::Iteration::incrementNumberOfIterations |
( |
| ) |
|
|
inlineprotectedinherited |
Incraments the number of iterations
◆ numIterations()
uint32 nc::roots::Iteration::numIterations |
( |
| ) |
const |
|
inlinenoexceptinherited |
Returns the number of iterations
- Returns
- : number of iterations
◆ resetNumberOfIterations()
void nc::roots::Iteration::resetNumberOfIterations |
( |
| ) |
|
|
inlineprotectednoexceptinherited |
Resets the number of iterations
◆ solve()
double nc::roots::Dekker::solve |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
inline |
Solves for the root in the range [a, b]
- Parameters
-
a | the lower bound |
b | the upper bound |
- Returns
- root between the bound
◆ epsilon_
const double nc::roots::Iteration::epsilon_ |
|
protectedinherited |
◆ maxNumIterations_
uint32 nc::roots::Iteration::maxNumIterations_ { 1000 } |
|
protectedinherited |
◆ numIterations_
uint32 nc::roots::Iteration::numIterations_ { 0 } |
|
protectedinherited |
The documentation for this class was generated from the following file: