Fix override warning
parent
8154dfd10b
commit
5a6bfed42c
|
@ -114,7 +114,7 @@ public:
|
||||||
/** implement functions needed to derive from Factor */
|
/** implement functions needed to derive from Factor */
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
virtual double error(const Values& x) const {
|
double error(const Values &x) const override {
|
||||||
return whitenedError(x).squaredNorm();
|
return whitenedError(x).squaredNorm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,8 +125,7 @@ public:
|
||||||
* Hence \f$ b = z - h(x) = - \mathtt{error\_vector}(x) \f$
|
* Hence \f$ b = z - h(x) = - \mathtt{error\_vector}(x) \f$
|
||||||
*/
|
*/
|
||||||
/* This version of linearize recalculates the noise model each time */
|
/* This version of linearize recalculates the noise model each time */
|
||||||
virtual boost::shared_ptr<GaussianFactor> linearize(
|
boost::shared_ptr<GaussianFactor> linearize(const Values &x) const override {
|
||||||
const Values& x) const {
|
|
||||||
// Only linearize if the factor is active
|
// Only linearize if the factor is active
|
||||||
if (!this->active(x))
|
if (!this->active(x))
|
||||||
return boost::shared_ptr<JacobianFactor>();
|
return boost::shared_ptr<JacobianFactor>();
|
||||||
|
|
Loading…
Reference in New Issue