NormalPrior
class NormalPrior
class NormalPrior: public CostFunction {
public:
// Check that the number of rows in the vector b are the same as the
// number of columns in the matrix A, crash otherwise.
NormalPrior(const Matrix& A, const Vector& b);
virtual bool Evaluate(double const* const* parameters,
double* residuals,
double** jacobians) const;
};
实现以下形式的成本函数
其中,矩阵 和向量 是固定的, 是变量。如果用户想要实现以下形式的成本函数
where, is a vector and is a covariance matrix, then, , i.e the matrix is the square root of the inverse of the covariance, also known as the stiffness matrix. There are however no restrictions on the shape of . It is free to be rectangular, which would be the case if the covariance matrix is rank deficient.
Last updated