Volume Cartographer 2.27.0
Namespaces | Functions | Variables
Derivative.hpp File Reference
#include <array>
#include <cassert>
#include <cstddef>
#include <vector>
Include dependency graph for Derivative.hpp:

Go to the source code of this file.

Namespaces

namespace  volcart
 Volume Cartographer library
 
namespace  volcart::segmentation
 Segmentation algorithms and utilities library
 

Functions

template<typename T >
volcart::segmentation::D1Forward (const std::vector< T > &vs, int index, int hstep=1)
 Calculate the first derivative for a sampled point. More...
 
template<typename T >
volcart::segmentation::D1Backward (const std::vector< T > &vs, int index, int hstep=1)
 Calculate the first derivative for a sampled point. More...
 
template<typename T >
volcart::segmentation::D1Central (const std::vector< T > &vs, int index, int hstep=1)
 Calculate the first derivative for a sampled point. More...
 
template<typename T >
volcart::segmentation::D1FivePointStencil (const std::vector< T > &vs, int index, int hstep=1)
 Calculate the first derivative for a sampled point using a five-point stencil. More...
 
template<typename T >
volcart::segmentation::D1At (const std::vector< T > &vs, int index, int hstep=1)
 Calculate the first derivative for a sampled point. More...
 
template<typename T >
std::vector< T > volcart::segmentation::D1 (const std::vector< T > &vs, int hstep=1)
 Calculate the first derivative for a vector of sampled points. More...
 
template<typename T >
volcart::segmentation::D2Forward (const std::vector< T > &vs, int index, int hstep=1)
 Calculate the second derivative for a sampled point. More...
 
template<typename T >
volcart::segmentation::D2Backward (const std::vector< T > &vs, int index, int hstep=1)
 Calculate the second derivative for a sampled point. More...
 
template<typename T >
volcart::segmentation::D2Central (const std::vector< T > &vs, int index, int hstep=1)
 Calculate the second derivative for a sampled point. More...
 
template<typename T >
volcart::segmentation::D2FivePointStencil (const std::vector< T > &vs, int index, int hstep=1)
 Calculate the second derivative for a sampled point using a five-point stencil. More...
 
template<typename T >
volcart::segmentation::D2At (const std::vector< T > &vs, int index, int hstep=1)
 Calculate the second derivative for a sampled point. More...
 
template<typename T >
std::vector< T > volcart::segmentation::D2 (const std::vector< T > &vs, int hstep=1)
 Calculate the second derivative for a vector of sampled points. More...
 

Variables

static constexpr std::array< std::array< double, 9 >, 4 > volcart::segmentation::D1_CENTRAL_DIFF_COEFFS
 
static constexpr std::array< std::array< double, 9 >, 4 > volcart::segmentation::D2_CENTRAL_DIFF_COEFFS
 

Detailed Description

From: https://en.wikipedia.org/wiki/Finite_difference_coefficient

Definition in file Derivative.hpp.