Loading...
Searching...
No Matches
Chebyshev.h
Go to the documentation of this file.
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -------------------------------------------------------------------------- */
#pragma once
#include <gtsam/base/Manifold.h>
#include <gtsam/basis/Basis.h>
namespace gtsam {
struct GTSAM_EXPORT Chebyshev1Basis : Basis<Chebyshev1Basis> {
using Parameters = Eigen::Matrix<double, -1, 1 /*Nx1*/>;
Parameters parameters_;
static Weights CalculateWeights(size_t N, double x, double a = -1,
double b = 1);
static Weights DerivativeWeights(size_t N, double x, double a = -1,
double b = 1);
}; // Chebyshev1Basis
struct GTSAM_EXPORT Chebyshev2Basis : Basis<Chebyshev2Basis> {
using Parameters = Eigen::Matrix<double, -1, 1 /*Nx1*/>;
static Weights CalculateWeights(size_t N, double x, double a = -1,
double b = 1);
static Weights DerivativeWeights(size_t N, double x, double a = -1,
double b = 1);
}; // Chebyshev2Basis
} // namespace gtsam
Manifold.h
Base class and basic functions for Manifold types.
Basis.h
Compute an interpolating basis.
gtsam
Global functions in a separate testing namespace.
Definition chartTesting.h:28
gtsam::Basis
CRTP Base class for function bases.
Definition Basis.h:100
gtsam::Chebyshev1Basis
Basis of Chebyshev polynomials of the first kind https://en.wikipedia.org/wiki/Chebyshev_polynomials#...
Definition Chebyshev.h:32
gtsam::Chebyshev1Basis::CalculateWeights
static Weights CalculateWeights(size_t N, double x, double a=-1, double b=1)
Evaluate Chebyshev Weights on [-1,1] at x up to order N-1 (N values).
Definition Chebyshev.cpp:39
gtsam::Chebyshev1Basis::DerivativeWeights
static Weights DerivativeWeights(size_t N, double x, double a=-1, double b=1)
Evaluate Chebyshev derivative at x.
Definition Chebyshev.cpp:54
gtsam::Chebyshev2Basis
Basis of Chebyshev polynomials of the second kind.
Definition Chebyshev.h:80
gtsam::Chebyshev2Basis::DerivativeWeights
static Weights DerivativeWeights(size_t N, double x, double a=-1, double b=1)
Evaluate Chebyshev derivative at x.
Definition Chebyshev.cpp:79
gtsam::Chebyshev2Basis::CalculateWeights
static Weights CalculateWeights(size_t N, double x, double a=-1, double b=1)
Evaluate Chebyshev Weights on [-1,1] at any x up to order N-1 (N values).
Definition Chebyshev.cpp:64