Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

VectorEvaluationFactor

Open In Colab

Overview

VectorEvaluationFactor is a unary factor for vector-valued measurements evaluated from a basis parameter matrix. It enforces f(x)\mathbf{f}(x) to match a measurement vector at a given point.

Key Functionality / API

  • VectorEvaluationFactor(key, z, model, M, N, x) constrains the full vector.

  • Optional interval parameters a, b scale the basis domain.

C++ Usage Example

gtsam::Vector z{{1.0, 0.0, -0.5}};
auto model = gtsam::noiseModel::Isotropic::Sigma(3, 0.1);
size_t M = 3, N = 6;
double x = 0.0;
gtsam::VectorEvaluationFactor<gtsam::Chebyshev2> factor(key, z, model, M, N, x);

Python Example

VectorEvaluationFactor wrappers:
   VectorEvaluationFactorChebyshev1Basis
   VectorEvaluationFactorChebyshev2
   VectorEvaluationFactorChebyshev2Basis
   VectorEvaluationFactorFourierBasis
Created VectorEvaluationFactorChebyshev2 with dim 3
Created VectorEvaluationFactorChebyshev2Basis with dim 3
Created VectorEvaluationFactorChebyshev1Basis with dim 3
Created VectorEvaluationFactorFourierBasis with dim 3