|
seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
|
Exact incremental affiliation across frames. More...
#include <src/include/internal/cage_affiliation.hpp>
Public Member Functions | |
| AffiliationUpdater () | |
| ~AffiliationUpdater () | |
| AffiliationUpdater (AffiliationUpdater &&) noexcept | |
| AffiliationUpdater & | operator= (AffiliationUpdater &&) noexcept |
| AffiliationUpdater (const AffiliationUpdater &)=delete | |
| AffiliationUpdater & | operator= (const AffiliationUpdater &)=delete |
| const CageAffiliation & | update (const std::vector< std::vector< int > > &rings, const std::vector< std::vector< int > > &nList) |
| int | lastReclassified () const |
| void | setBatchFraction (double fraction) |
Exact incremental affiliation across frames.
Stores, per six-ring, its passing basal pairs with their prismatic rings and its equatorial result. On a new frame it matches the rings to the previous frame's and evaluates again only the pairs of rings that are new, hold an atom whose neighbour row changed, or hold or bond an atom of an added or removed ring, and the equatorial test of rings that are new or hold an atom of an added or removed ring. The flags are the unions over the stored answers, identical to cageAffiliation on the new frame.
Definition at line 100 of file cage_affiliation.hpp.
| ring::AffiliationUpdater::AffiliationUpdater | ( | ) |
| ring::AffiliationUpdater::~AffiliationUpdater | ( | ) |
|
noexcept |
|
delete |
|
nodiscard |
Rings whose pairs or equatorial test the last update evaluated again; the first call reports every ring.
|
noexcept |
|
delete |
| void ring::AffiliationUpdater::setBatchFraction | ( | double | fraction | ) |
Above this fraction of dirty rings, update runs one sweep instead of remapping stored pairs. The default is 1, so a transition keeps every ring outside the changed region. A smaller fraction opts into the sweep. An unchanged graph returns the stored flags.
| const CageAffiliation & ring::AffiliationUpdater::update | ( | const std::vector< std::vector< int > > & | rings, |
| const std::vector< std::vector< int > > & | nList ) |
Classify the frame, reusing the previous frame's answers outside the locality closure of what changed. The reference stays valid until the next update call.