.. index:: pair: class; gpr::priors::CovalentBondPrior .. _doxid-classgpr_1_1priors_1_1_covalent_bond_prior: class gpr::priors::CovalentBondPrior ==================================== .. toctree:: :hidden: Overview ~~~~~~~~ Length-scale prior on SexpAt keyed off the :ref:`AtomsConfiguration ` 's pairtype table. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class CovalentBondPrior { public: // construction :ref:`CovalentBondPrior`(const :ref:`AtomsConfiguration`& atoms_config, double alpha = 1.0); // methods Eigen::VectorXd :ref:`lengthScalePerPairtype`() const; static double :ref:`bondLength`(int Za, int Zb, double alpha = 1.0); }; .. _details-classgpr_1_1priors_1_1_covalent_bond_prior: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Length-scale prior on SexpAt keyed off the :ref:`AtomsConfiguration ` 's pairtype table. Returns one length scale per pairtype in the same indexing the SexpAt kernel uses (matches ``Distance.cpp:395-525``). Construction ------------ .. index:: pair: function; CovalentBondPrior .. _doxid-classgpr_1_1priors_1_1_covalent_bond_prior_1a57eab1c575ed713fa647687f0013dee6: .. ref-code-block:: cpp :class: doxyrest-title-code-block CovalentBondPrior(const :ref:`AtomsConfiguration`& atoms_config, double alpha = 1.0) .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - atoms_config - :ref:`AtomsConfiguration ` with ``n_pt`` active pairtypes and ``pairtype(i, j)`` indexed by ``atoms_mov.type`` etc. * - alpha - optional scaling factor applied to the bond-length sum (default 1.0). Tighter ``alpha`` (~0.5) makes the GP more local; looser (~2.0) makes it more global. Methods ------- .. index:: pair: function; lengthScalePerPairtype .. _doxid-classgpr_1_1priors_1_1_covalent_bond_prior_1ad60b14428f1e67497c3a4d9f40e80f20: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd lengthScalePerPairtype() const Per-pairtype length scale in Angstrom. Length = ``conf.n_pt``; element [k] is the prior length scale for pairtype k. .. index:: pair: function; bondLength .. _doxid-classgpr_1_1priors_1_1_covalent_bond_prior_1a54e2dde63c2a5ca3afd80faf3f7d99a2: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double bondLength(int Za, int Zb, double alpha = 1.0) Static convenience: bond length in Angstrom for arbitrary (Za, Zb).