| 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 | { |
nothing calls this directly
no test coverage detected