struct gpr::optim::StationaryCurvaturePosterior

Overview

The curvature of a mode at the stationary point the search converges to, from the cubic model along the mode: with gradient component f, curvature c and cubic coefficient b, E(q) = f q + c q^2 / 2 + b q^3 / 6 has stationary points where f + c q + b q^2 / 2 = 0, and the curvature there is c + b q = sign(c) sqrt(c^2 - 2 b f) (derive_smoothed_index_ certificate.py). More…

#include <gpr/optimization/StationaryCurvature.h>
 
struct StationaryCurvaturePosterior {
    // fields
 
    bool valid = false;
    double lower = -std::numeric_limits<double>::infinity();
    double upper = std::numeric_limits<double>::infinity();
    double undetermined = 1.0;
    double force_target = std::numeric_limits<double>::infinity();
    bool force_decidable = false;
};

Detailed Documentation

The curvature of a mode at the stationary point the search converges to, from the cubic model along the mode: with gradient component f, curvature c and cubic coefficient b, E(q) = f q + c q^2 / 2 + b q^3 / 6 has stationary points where f + c q + b q^2 / 2 = 0, and the curvature there is c + b q = sign(c) sqrt(c^2 - 2 b f) (derive_smoothed_index_ certificate.py). The measured c, f and b carry Gaussian errors; the posterior of the stationary curvature is sampled, and a sample whose discriminant is negative (no stationary point of the model along the mode) leaves the sign undetermined and widens both bounds. The bounds are the one-spread quantiles the certificate uses everywhere. The force target is the force magnitude at which the discriminant c^2 - 2 b f exceeds zero by its own one-spread error under the same Gaussian errors, to first order sqrt((2 c s_c)^2 + (2 b s_f)^2 + (2 f s_b)^2), evaluated at the target force itself: there the sign becomes decidable at one spread. A target below the stencil’s own force error cannot be resolved by any search this stencil judges: the target is then not decidable and the sign of the curvature at the point stands.

Fields

double undetermined = 1.0

fraction of samples without a model root

bool force_decidable = false

force_target resolvable at f_spread