Class root_robbins_monro (o2scl)

O2scl : Class List

template<class func_t = funct, class dfunc_t = func_t>
class o2scl::root_robbins_monro : public o2scl::root<funct, funct>

One-dimensional root-finding for noisy functions.

Public Functions

root_robbins_monro()
const char *type()

Return the type, "root_robbins_monro".

int solve(double &x, func_t &func)

Solve func using x as an initial guess.

int solve_bkt(double &x1, double x2, func_t &f)

Solve func in region \( x_1<x<x_2 \) returning \( x_1 \).

int solve_de(double &x, func_t &func, dfunc_t &df)

Solve func using x as an initial guess using derivatives df.

Public Members

bool pr_averaging

If true, apply Polyak-Ruppert averaging.

double coeff

Coefficient for sequence (default 1.0)

double gamma

Exponent for sequence (default 1.0)