.. index:: pair: struct; funcmin::MapObjectiveConfig .. _doxid-structfuncmin_1_1_map_objective_config: struct funcmin::MapObjectiveConfig ================================== .. toctree:: :hidden: Overview ~~~~~~~~ Inputs for the MAP prior and barrier penalty applied to the base NLML. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct MapObjectiveConfig { // fields double :target:`signal_variance` = 1.0; double :ref:`barrier_strength` = 0.0; bool :target:`use_magn_ceiling` = false; double :target:`max_log_magnSigma2` = 0.0; bool :target:`use_tail_lower_barrier` = false; double :target:`tail_lower_barrier` = -std::numeric_limits::infinity(); :ref:`gpr::MapPriorWeightMode` :target:`weight_mode` = :ref:`gpr::MapPriorWeightMode::Annealed`; bool :ref:`use_configured_magn_prior` = false; bool :ref:`use_lognormal_magn_prior` = false; :ref:`gpr::PriorBase` :target:`magn_prior`; bool :target:`use_configured_lengthscale_prior` = false; :ref:`gpr::PriorBase` :target:`lengthscale_prior`; Eigen::VectorXd :ref:`lengthscale_rho0`; Eigen::Index :ref:`lengthscale_count` = -1; Eigen::VectorXd :ref:`prior_weight`; std::vector :target:`active_parameters`; Eigen::VectorXd :ref:`parameter_lower`; Eigen::VectorXd :target:`parameter_upper`; }; .. _details-structfuncmin_1_1_map_objective_config: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Inputs for the MAP prior and barrier penalty applied to the base NLML. A GP fit holds this configuration fixed across solver changes. Fields ------ .. index:: pair: variable; barrier_strength .. _doxid-structfuncmin_1_1_map_objective_config_1a0264b7843d3b306d582b82c50a55989d: .. ref-code-block:: cpp :class: doxyrest-title-code-block double barrier_strength = 0.0 Already capped with min(current_barrier_strength, 0.5) by the caller. .. index:: pair: variable; use_configured_magn_prior .. _doxid-structfuncmin_1_1_map_objective_config_1a2808855508b472bd34755e2cea680745: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool use_configured_magn_prior = false Optional configured prior parameters. When use\_\* is true and the corresponding scale/df are positive, the shared objective applies the gpr::prior hierarchy; otherwise the weakly-informative defaults apply. .. index:: pair: variable; use_lognormal_magn_prior .. _doxid-structfuncmin_1_1_map_objective_config_1a5bd6f24ddd088998006922a7e375e02e: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool use_lognormal_magn_prior = false Opt-in log-normal on magnSigma2. Off keeps the half-Cauchy or configured half-Student-t magnitude prior. Takes precedence over use_configured_magn_prior when both are set. .. index:: pair: variable; lengthscale_rho0 .. _doxid-structfuncmin_1_1_map_objective_config_1a44b4efe197f485afa311e881a1c20f5a: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd lengthscale_rho0 Per-pairtype descriptor spread rho0_k (index k aligns with w(k+1), i.e. :ref:`lengthscale_rho0(0) ` anchors w(1), etc.), the data's own natural scale in descriptor units. Anchors the DEFAULT (weakly-informative, not use_configured_lengthscale_prior) Student-t lengthscale prior so it penalizes deviation of the DIMENSIONLESS ratio ell_k/rho0_k from 1, instead of the raw ell_k against an implicit unit-Angstrom scale. Empty (the default) falls back to the pre-anchor behaviour: every entry effectively uses rho0_k = 1, exactly reproducing the historical formula. A given index also falls back individually when its rho0_k entry is missing, non-finite, or non-positive (degenerate descriptor spread for that pairtype only). .. index:: pair: variable; lengthscale_count .. _doxid-structfuncmin_1_1_map_objective_config_1a0be34e4ce89e2e2f7056a36f81513d3d: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::Index lengthscale_count = -1 Length-scale coordinates after the magnitude. Negative means every coordinate after the magnitude is a length scale. A learned log(sigma2) appended past this count is not a length scale. .. index:: pair: variable; prior_weight .. _doxid-structfuncmin_1_1_map_objective_config_1a31dadeca9c8d7b9d16d80fd4ea19d83d: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd prior_weight Weight of each parameter's prior term (empty: every weight one). A group of tied length scales shares one prior, weighted 1/k over its k members so that the penalty gradient stays equal within the group. .. index:: pair: variable; parameter_lower .. _doxid-structfuncmin_1_1_map_objective_config_1aaa01a9b0dab5fe42b73407314e432dea: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd parameter_lower Closed parameter domain, independent of the smooth prior penalties. Empty vectors impose no bounds.