.. index:: pair: struct; gpr_model_config_t .. _doxid-structgpr__model__config__t: struct gpr_model_config_t ========================= .. toctree:: :hidden: Overview ~~~~~~~~ GP/TP model configuration. All fields have sensible defaults via :ref:`gpr_model_config_defaults() `. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct gpr_model_config_t { // fields double :ref:`sigma2`; double :ref:`jitter_sigma2`; double :ref:`magn_sigma2`; double :ref:`const_sigma2`; double :ref:`prior_mu`; double :ref:`prior_nu`; double :ref:`prior_s2`; :ref:`gpridge_alg_t` :ref:`optim_alg`; int :ref:`max_iter`; double :ref:`tol_func`; double :ref:`tol_sol`; int :ref:`report_level`; double :ref:`tp_hyperprior_a`; double :ref:`tp_hyperprior_b`; int :ref:`use_zbl_prior_mean`; int :ref:`use_ff_prior_mean`; int :ref:`use_hssvd_backend`; }; .. _details-structgpr__model__config__t: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ GP/TP model configuration. All fields have sensible defaults via :ref:`gpr_model_config_defaults() `. Fields ------ .. index:: pair: variable; sigma2 .. _doxid-structgpr__model__config__t_1a19922b70b20b765a09439a9f71b785ab: .. ref-code-block:: cpp :class: doxyrest-title-code-block double sigma2 Physical noise variance. Default: 1e-4 .. index:: pair: variable; jitter_sigma2 .. _doxid-structgpr__model__config__t_1ab6fef836a140e709ad0cab9f9b2015e1: .. ref-code-block:: cpp :class: doxyrest-title-code-block double jitter_sigma2 Diagonal jitter. Default: 1e-4 .. index:: pair: variable; magn_sigma2 .. _doxid-structgpr__model__config__t_1adab13a76059a9e8af52061274f47cc8b: .. ref-code-block:: cpp :class: doxyrest-title-code-block double magn_sigma2 Signal variance (0=auto). Default: 0 .. index:: pair: variable; const_sigma2 .. _doxid-structgpr__model__config__t_1ac4cc8bb0b497391c08c7a82c480b008d: .. ref-code-block:: cpp :class: doxyrest-title-code-block double const_sigma2 Constant covariance term. Default: 0 .. index:: pair: variable; prior_mu .. _doxid-structgpr__model__config__t_1a17828d58e0729eab9608f7d6b95488f3: .. ref-code-block:: cpp :class: doxyrest-title-code-block double prior_mu Prior mean. Default: 0 .. index:: pair: variable; prior_nu .. _doxid-structgpr__model__config__t_1a3927ddc04f53ed69d8228ff035c0f88e: .. ref-code-block:: cpp :class: doxyrest-title-code-block double prior_nu Prior degrees of freedom. Default: 20 .. index:: pair: variable; prior_s2 .. _doxid-structgpr__model__config__t_1af24f090d488df341fa5e0a3081747f65: .. ref-code-block:: cpp :class: doxyrest-title-code-block double prior_s2 Prior scale. Default: 1 .. index:: pair: variable; optim_alg .. _doxid-structgpr__model__config__t_1a5014f21a61e6f0d6d5907535ec8d0fcc: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`gpridge_alg_t` optim_alg Optimization algorithm. Default: SCG .. index:: pair: variable; max_iter .. _doxid-structgpr__model__config__t_1a8b93c14392e044bf4645627b366438ed: .. ref-code-block:: cpp :class: doxyrest-title-code-block int max_iter Max optimizer iterations. Default: 400 .. index:: pair: variable; tol_func .. _doxid-structgpr__model__config__t_1aef81745c191da98e1147ab446ee7f89c: .. ref-code-block:: cpp :class: doxyrest-title-code-block double tol_func Function tolerance. Default: 1e-3 .. index:: pair: variable; tol_sol .. _doxid-structgpr__model__config__t_1a24c4d6155ba3ba09752c8e17229a6aa0: .. ref-code-block:: cpp :class: doxyrest-title-code-block double tol_sol Solution tolerance. Default: 1e-3 .. index:: pair: variable; report_level .. _doxid-structgpr__model__config__t_1ac847568a63f3d0f363880550cde2e351: .. ref-code-block:: cpp :class: doxyrest-title-code-block int report_level 0=silent, 1=summary, 2=verbose. Default: 0 .. index:: pair: variable; tp_hyperprior_a .. _doxid-structgpr__model__config__t_1a71dd5ff21f87e5af59bd84bccedfb93a: .. ref-code-block:: cpp :class: doxyrest-title-code-block double tp_hyperprior_a TP inverse-gamma shape. Default: 1e-20 .. index:: pair: variable; tp_hyperprior_b .. _doxid-structgpr__model__config__t_1aac489ba99a5e88eaba360c10e9708577: .. ref-code-block:: cpp :class: doxyrest-title-code-block double tp_hyperprior_b TP inverse-gamma scale. Default: 1e-20 .. index:: pair: variable; use_zbl_prior_mean .. _doxid-structgpr__model__config__t_1ac03082c062fd4f4274580542ef09c48e: .. ref-code-block:: cpp :class: doxyrest-title-code-block int use_zbl_prior_mean Residual ZBL GP prior mean. Default: 0 .. index:: pair: variable; use_ff_prior_mean .. _doxid-structgpr__model__config__t_1ad2a7d9fce633c1563d9b4f86e9cf3123: .. ref-code-block:: cpp :class: doxyrest-title-code-block int use_ff_prior_mean Teng Morse FF prior mean. Default: 0 .. index:: pair: variable; use_hssvd_backend .. _doxid-structgpr__model__config__t_1aa6fbc9e83d8d5f862f07043cc32bd695: .. ref-code-block:: cpp :class: doxyrest-title-code-block int use_hssvd_backend Posterior solver, a :ref:`gpr_hssvd_backend_t ` value. GPR_HSSVD_BACKEND_DEFAULT (0) leaves the library default, HS-SVD, so a zero-initialized config ({0}) does not select Cholesky. GPR_HSSVD_BACKEND_HSSVD (1) selects the stable basis K = Psi diag(S^2) Psi^T. GPR_HSSVD_BACKEND_CHOLESKY (2) selects Cholesky. :ref:`gpr_model_config_defaults() ` stores HSSVD. The setter takes these same three values and rejects any other. This trailing field grows this non-size-versioned struct. Callers compiled with an older header must recompile before passing it to gpr_model_init; appending preserves every preceding field offset.