GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gtsam::Basis< DERIVED >::DerivativeFunctor Class Reference

#include <Basis.h>

Inheritance diagram for gtsam::Basis< DERIVED >::DerivativeFunctor:
Inheritance graph
[legend]
Collaboration diagram for gtsam::Basis< DERIVED >::DerivativeFunctor:
Collaboration graph
[legend]

Public Member Functions

 DerivativeFunctor ()
 For serialization.
 
 DerivativeFunctor (size_t N, double x)
 
 DerivativeFunctor (size_t N, double x, double a, double b)
 
double apply (const typename DERIVED::Parameters &p, OptionalJacobian< -1, -1 > H={}) const
 
double operator() (const typename DERIVED::Parameters &p, OptionalJacobian< -1, -1 > H={}) const
 c++ sugar
 

Protected Member Functions

void print (const std::string &s="") const
 

Protected Attributes

Weights weights_
 

Detailed Description

template<typename DERIVED>
class gtsam::Basis< DERIVED >::DerivativeFunctor

An instance of a DerivativeFunctor calculates f'(x;p) at a given x, applied to Parameters p. When given a scalar value x and a specific N*1 vector of Parameters, this functor returns the scalar derivative value of the function at x, possibly with Jacobians wrpt the parameters.


The documentation for this class was generated from the following file: