.. index:: pair: struct; atmd::AtomicDimer::early_stopping_t .. _doxid-structatmd_1_1_atomic_dimer_1_1early__stopping__t: struct atmd::AtomicDimer::early_stopping_t ========================================== .. toctree:: :hidden: Overview ~~~~~~~~ Early stopping criteria :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block struct early_stopping_t { // fields :ref:`DistanceMetricType` :ref:`_dist_metric`; double :ref:`_threshold`; bool :ref:`_use_adaptive_threshold`; double :ref:`_adaptive_A`; double :ref:`_adaptive_floor`; double :target:`_adaptive_t_min`; double :target:`_adaptive_delta_explore`; int :target:`_adaptive_half_life`; }; .. _details-structatmd_1_1_atomic_dimer_1_1early__stopping__t: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Early stopping criteria Fields ------ .. index:: pair: variable; _dist_metric .. _doxid-structatmd_1_1_atomic_dimer_1_1early__stopping__t_1ae5ab09ee293ca28b3b4cfea48a8f4a9b: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`DistanceMetricType` _dist_metric The distance metric (e.g., EMD, RMSD) for quantifying the change between two atomic configurations. .. index:: pair: variable; _threshold .. _doxid-structatmd_1_1_atomic_dimer_1_1early__stopping__t_1a984a67c258569b1af64895fec6290801: .. ref-code-block:: cpp :class: doxyrest-title-code-block double _threshold A fixed distance threshold. This value is used directly when the adaptive threshold mechanism is disabled. .. index:: pair: variable; _use_adaptive_threshold .. _doxid-structatmd_1_1_atomic_dimer_1_1early__stopping__t_1a9529ff04884f6602ea494c2c43c6b74a: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool _use_adaptive_threshold A master switch to enable the size-dependent adaptive threshold. If true, the threshold is calculated dynamically using ``_adaptive_A`` and ``_adaptive_floor``. If false, the fixed ``_threshold`` is used. .. index:: pair: variable; _adaptive_A .. _doxid-structatmd_1_1_atomic_dimer_1_1early__stopping__t_1a4b913807a73a322410c63aa10f94069c: .. ref-code-block:: cpp :class: doxyrest-title-code-block double _adaptive_A The permissiveness constant for the adaptive threshold. This value controls the overall scale of the threshold, especially for small-to-medium systems, following the relation ``thresh ≈ A / sqrt(N)``. A larger 'A' results in a looser (more permissive) threshold. A good starting value for exploratory searches is ~1.3, which yields a threshold of ~0.4 Å for a 10-atom system. .. index:: pair: variable; _adaptive_floor .. _doxid-structatmd_1_1_atomic_dimer_1_1early__stopping__t_1a9532bedef122b6830e2bff45a0d6b234: .. ref-code-block:: cpp :class: doxyrest-title-code-block double _adaptive_floor The floor value, or minimum threshold, for the adaptive mechanism. This is the most critical parameter for tailoring the check to the specific scientific goal. It prevents the threshold from becoming overly restrictive ("crippling") for very large systems.