Template Function treeweave::fit

Function Documentation

template<std::size_t Degree = 0, EvalPolicy Policy = EvalPolicy::Balanced, class Func, class Domain>
auto treeweave::fit(Func &&f, Domain a, Domain b, double tol, const options &opts = {})

Canonical “fit f on [a, b] to tolerance” one-liner. Panel count falls out of the adaptive tree; the leaf degree is a hyperparameter with a reasonable default. tol is positional (no default) so every call site makes its target accuracy explicit.