ROOT
ROOT project
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
BisectionConfig Class Reference

Configuration (data) class for the Bisection method. More...

#include <config.hpp>

Inheritance diagram for BisectionConfig:
Inheritance graph
Collaboration diagram for BisectionConfig:
Collaboration graph

Public Member Functions

 BisectionConfig (double tolerance, int max_iterations, bool aitken, std::function< double(double)> function, double initial_point, double final_point, bool verbose)
 Constructor for BisectionConfig.
 
- Public Member Functions inherited from ConfigBase
virtual ~ConfigBase ()
 Virtual destructor required for downcasting objects to derived class types (using dynamic_cast).
 

Public Attributes

double initial_point
 The initial point of the interval.
 
double final_point
 The final point of the interval.
 
- Public Attributes inherited from ConfigBase
Method method
 The root-finding method to be used.
 
double tolerance
 The tolerance for convergence.
 
int max_iterations
 The maximum number of iterations allowed.
 
bool aitken
 Indicates whether Aitken acceleration is enabled.
 
bool verbose
 Indicates whether verbose output is enabled.
 
std::function< double(double)> function
 The function for which the root is to be found.
 

Detailed Description

Configuration (data) class for the Bisection method.

This class extends ConfigBase and includes specific parameters for the Bisection method, such as the initial and final points of the interval.

Constructor & Destructor Documentation

◆ BisectionConfig()

BisectionConfig::BisectionConfig ( double  tolerance,
int  max_iterations,
bool  aitken,
std::function< double(double)>  function,
double  initial_point,
double  final_point,
bool  verbose 
)
inline

Constructor for BisectionConfig.

Parameters
toleranceThe tolerance for convergence.
max_iterationsThe maximum number of iterations allowed.
aitkenIndicates whether Aitken acceleration is enabled.
functionThe function for which the root is to be found.
initial_pointThe initial point of the interval.
final_pointThe final point of the interval.

Member Data Documentation

◆ final_point

double BisectionConfig::final_point

The final point of the interval.

◆ initial_point

double BisectionConfig::initial_point

The initial point of the interval.


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