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.

ComponentDerivativeFactor

Open In Colab

Overview

ComponentDerivativeFactor is a unary factor that constrains the derivative of a single component of a vector-valued basis function at a given point.

Key Functionality / API

  • ComponentDerivativeFactor(key, z, model, P, N, i, x) constrains component i of f(x)\mathbf{f}'(x).

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

C++ Usage Example

auto model = gtsam::noiseModel::Isotropic::Sigma(1, 0.05);
size_t P = 3, N = 6, i = 2;
double x = 0.2;
double z = 0.0;
gtsam::ComponentDerivativeFactor<gtsam::Chebyshev2> factor(key, z, model, P, N, i, x);

Python Usage Example

import gtsam

model = gtsam.noiseModel.Isotropic.Sigma(1, 0.05)
key = gtsam.symbol("c", 0)
factor = gtsam.ComponentDerivativeFactorChebyshev2(key, 0.0, model, 3, 6, 2, 0.2)
print(factor)
  keys = { c0 }
isotropic dim=1 sigma=0.05
FunctorizedFactor(c0)
  measurement:  0
  noise model sigmas: 0.05