struct mrpt::graphs::ScalarFactorGraph::BinaryFactorVirtualBase

Simple, scalar (1-dim) constraint (edge) for a GMRF.

#include <mrpt/graphs/ScalarFactorGraph.h>

struct BinaryFactorVirtualBase: public mrpt::graphs::ScalarFactorGraph::FactorBase
{
    //
methods

    virtual void evalJacobian(double& dr_dxi, double& dr_dxj) const = 0;
    virtual double evaluateResidual() const = 0;
    virtual double getInformation() const = 0;
};

// direct descendants

struct TPriorFactorGMRF;
struct TPriorFactorGMRF;

Methods

virtual void evalJacobian(double& dr_dxi, double& dr_dxj) const = 0

Returns the derivative of the residual wrt the node values.

virtual double evaluateResidual() const = 0

Return the residual/error of this observation.

virtual double getInformation() const = 0

Return the inverse of the variance of this constraint.