TBTK
Need a break? Support the development by playing Polarity Puzzles
TBTK::Convolver Class Reference

Static Public Member Functions

template<typename DataType >
static Array< DataType > convolve (const Array< DataType > &array0, const Array< DataType > &array1)
 
template<typename DataType >
static Array< DataType > crossCorrelate (const Array< DataType > &array0, const Array< DataType > &array1)
 

Member Function Documentation

◆ convolve()

template<typename DataType >
Array< DataType > TBTK::Convolver::convolve ( const Array< DataType > &  array0,
const Array< DataType > &  array1 
)
static

Calculates the convolution \(\sum_{x}f(x)g(y-x)\) of two array \(f\) and \(g\).

Parameters
array0The array \(f\) in the convolution.
array1The array \(g\) in the convolution.
Returns
The resulting array from the convolution.

◆ crossCorrelate()

template<typename DataType >
Array< DataType > TBTK::Convolver::crossCorrelate ( const Array< DataType > &  array0,
const Array< DataType > &  array1 
)
static

Calculates the cross correlation \(\sum_{x}f^{*}(x)g(x+y)\) of two arrays \(f\) and \(g\).

Parameters
array0The array \(f\) in the cross correlation.
array1The array \(g\) in the cross correlation.
Returns
The resulting array from the cross correlation.

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