MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / setLowerBound

Method setLowerBound

src/FactorGraph.cpp:225–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223 }
224
225 void FactorGraph::setLowerBound(const string &Name, const double Timestamp, const int StateNumber, const Vector &Bound)
226 {
227 const int Dim = _StateData.getElement(Name, Timestamp, StateNumber).getMean().size();
228
229 if (Bound.size() == Dim)
230 {
231 for (int n = 0; n < Dim; n++)
232 {
233 _Graph.SetParameterLowerBound(_StateData.getElement(Name, Timestamp, StateNumber).getMeanPointer(), n, Bound(n));
234 }
235 }
236 else
237 {
238 PRINT_ERROR("Dimension of bounding vector is ", Bound.size(), " instead of ", Dim, "!") ;
239 }
240 }
241
242 bool FactorGraph::marginalizeStates(std::vector<StateID> States, const double Inflation)
243 {

Callers

nothing calls this directly

Calls 3

getElementMethod · 0.80
getMeanPointerMethod · 0.80
getMeanMethod · 0.45

Tested by

no test coverage detected