MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / addWeight

Method addWeight

pose_graph/ThirdParty/DBoW/BowVector.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28// --------------------------------------------------------------------------
29
30void BowVector::addWeight(WordId id, WordValue v) {
31 BowVector::iterator vit = this->lower_bound(id);
32
33 if (vit != this->end() && !(this->key_comp()(id, vit->first))) {
34 vit->second += v;
35 } else {
36 this->insert(vit, BowVector::value_type(id, v));
37 }
38}
39
40// --------------------------------------------------------------------------
41

Callers 1

transformMethod · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected