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.

DerivativeFactor

Open In Colab

Overview

DerivativeFactor is a unary factor that enforces a scalar measurement of the derivative of a basis function at a given point.

Key Functionality / API

  • DerivativeFactor(key, z, model, N, x) constrains f(x)f'(x) to measurement z.

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

C++ Usage Example

auto model = gtsam::noiseModel::Isotropic::Sigma(1, 0.05);
size_t N = 8;
double x = -0.3;
double z = 0.0;
gtsam::DerivativeFactor<gtsam::Chebyshev2> factor(key, z, model, N, x);

Python Usage Example

import gtsam

model = gtsam.noiseModel.Isotropic.Sigma(1, 0.05)
key = gtsam.symbol('c', 0)
factor = gtsam.DerivativeFactorChebyshev2(key, 0.0, model, 8, -0.3)
print(factor)
  keys = { c0 }
isotropic dim=1 sigma=0.05
FunctorizedFactor(c0)
  measurement:  0
  noise model sigmas: 0.05