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.

VectorComponentFactor

Open In Colab

Overview

VectorComponentFactor is a unary factor that constrains a single component of a vector-valued basis function at a given point. It is useful when only one component is observed.

Key Functionality / API

  • VectorComponentFactor(key, z, model, P, N, i, x) constrains component i.

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

C++ Usage Example

auto model = gtsam::noiseModel::Isotropic::Sigma(1, 0.1);
size_t P = 3, N = 6, i = 1;
double x = 0.5;
double z = -0.2;
gtsam::VectorComponentFactor<gtsam::Chebyshev2> factor(key, z, model, P, N, i, x);

Python Example

VectorComponentFactor wrappers:
   VectorComponentFactorChebyshev1Basis
   VectorComponentFactorChebyshev2
   VectorComponentFactorChebyshev2Basis
   VectorComponentFactorFourierBasis
Created VectorComponentFactorChebyshev1Basis with dim 1
Created VectorComponentFactorChebyshev2 with dim 1
Created VectorComponentFactorChebyshev2Basis with dim 1
Created VectorComponentFactorFourierBasis with dim 1