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 to measurementz.Optional interval parameters
a, bscale 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