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

Method setUpperBound

src/FactorGraph.cpp:208–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206 }
207
208 void FactorGraph::setUpperBound(const string &Name, const double Timestamp, const int StateNumber, const Vector &Bound)
209 {
210 const int Dim = _StateData.getElement(Name, Timestamp, StateNumber).getMean().size();
211
212 if (Bound.size() == Dim)
213 {
214 for (int n = 0; n < Dim; n++)
215 {
216 _Graph.SetParameterUpperBound(_StateData.getElement(Name, Timestamp, StateNumber).getMeanPointer(), n, Bound(n));
217 }
218 }
219 else
220 {
221 PRINT_ERROR("Dimension of bounding vector is ", Bound.size(), " instead of ", Dim, "!") ;
222 }
223 }
224
225 void FactorGraph::setLowerBound(const string &Name, const double Timestamp, const int StateNumber, const Vector &Bound)
226 {

Callers

nothing calls this directly

Calls 3

getElementMethod · 0.80
getMeanPointerMethod · 0.80
getMeanMethod · 0.45

Tested by

no test coverage detected