.. index:: pair: class; gpr::priors::PopulationPrior .. _doxid-classgpr_1_1priors_1_1_population_prior: class gpr::priors::PopulationPrior ================================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class PopulationPrior { public: // methods bool :target:`empty`() const; std::size_t :target:`size`() const; void :target:`clear`(); void :target:`add`(:ref:`PopulationPairPrior` prior); const :ref:`PopulationPairPrior`* :ref:`find`(int element_a, int element_b) const; bool :ref:`read`(std::istream& input); std::vector`*> :ref:`perPairtype`(const :ref:`AtomsConfiguration`& conf) const; }; .. _details-classgpr_1_1priors_1_1_population_prior: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; find .. _doxid-classgpr_1_1priors_1_1_population_prior_1af016e477b01f564eecf37b9b1ed59c06: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`PopulationPairPrior`* find(int element_a, int element_b) const The entry of an element pair, in either order; null when unseen. .. index:: pair: function; read .. _doxid-classgpr_1_1priors_1_1_population_prior_1aebd89b2e2821ef7cb4e1c229c581648f: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool read(std::istream& input) Table rows "Za Zb cells log_length_mu log_length_sigma"; '#' starts a comment. False on a malformed row. .. index:: pair: function; perPairtype .. _doxid-classgpr_1_1priors_1_1_population_prior_1ae615da1c3e077b381ad2ec400efcef01: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector`*> perPairtype(const :ref:`AtomsConfiguration`& conf) const The entry of each active pair type of a configuration (null for a pair type whose element pair the population has not seen), by the same walk of the type table the covalent prior uses.