.. index:: pair: struct; gpr::optim::StationaryCurvaturePosterior .. _doxid-structgpr_1_1optim_1_1_stationary_curvature_posterior: struct gpr::optim::StationaryCurvaturePosterior =============================================== .. toctree:: :hidden: 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). :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct StationaryCurvaturePosterior { // fields bool :target:`valid` = false; double :target:`lower` = -std::numeric_limits::infinity(); double :target:`upper` = std::numeric_limits::infinity(); double :ref:`undetermined` = 1.0; double :target:`force_target` = std::numeric_limits::infinity(); bool :ref:`force_decidable` = false; }; .. _details-structgpr_1_1optim_1_1_stationary_curvature_posterior: 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 ------ .. index:: pair: variable; undetermined .. _doxid-structgpr_1_1optim_1_1_stationary_curvature_posterior_1a1393530915c7984c79357b15924b5d38: .. ref-code-block:: cpp :class: doxyrest-title-code-block double undetermined = 1.0 fraction of samples without a model root .. index:: pair: variable; force_decidable .. _doxid-structgpr_1_1optim_1_1_stationary_curvature_posterior_1a721b5dda30aa06a4dd712478cdba5f94: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool force_decidable = false force_target resolvable at f_spread