Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
|
Power Spectrum Fourier Transform version / Transform / Module. More...
#include <cheetah/pwft/Pwft.h>
Public Member Functions | |
Pwft (Config const &config) | |
Pwft (Pwft const &)=delete | |
Pwft (Pwft &&)=default | |
template<typename Arch , typename T , typename InputAlloc , typename OutputAlloc , typename... Args> | |
void | process_direct (panda::PoolResource< Arch > &resource, data::FrequencySeries< Arch, typename data::ComplexTypeTraits< Arch, T >::type, InputAlloc >const &input, data::PowerSeries< Arch, T, OutputAlloc > &output, Args &&... args) |
Form power spectrum using absolute squared. More... | |
template<typename Arch , typename T , typename InputAlloc , typename OutputAlloc , typename... Args> | |
void | process_nn (panda::PoolResource< Arch > &resource, data::FrequencySeries< Arch, typename data::ComplexTypeTraits< Arch, T >::type, InputAlloc >const &input, data::PowerSeries< Arch, T, OutputAlloc > &output, Args &&... args) |
Form power spectrum using absolute squared with nearest neighbour comparison. More... | |
Power Spectrum Fourier Transform version / Transform / Module.
void ska::cheetah::pwft::Pwft::process_direct | ( | panda::PoolResource< Arch > & | resource, |
data::FrequencySeries< Arch, typename data::ComplexTypeTraits< Arch, T >::type, InputAlloc >const & | input, | ||
data::PowerSeries< Arch, T, OutputAlloc > & | output, | ||
Args &&... | args | ||
) |
Form power spectrum using absolute squared.
Each power measurement is found by output[i] = |input[i]|^2
resource | A panda PoolResource object | |
[in] | input | A FrequencySeries object of complex data type |
[out] | output | A FrequencySeries object of real data type |
args... | Additional arguments to be forwarded to implementation |
Arch | A processing architecture |
T | The value type of the input and output FrequencySeries |
Alloc | The allocator type of the input and output FrequencySeries |
Args | Additional template parameters for call forwarding |
Definition at line 33 of file Pwft.cpp.
void ska::cheetah::pwft::Pwft::process_nn | ( | panda::PoolResource< Arch > & | resource, |
data::FrequencySeries< Arch, typename data::ComplexTypeTraits< Arch, T >::type, InputAlloc >const & | input, | ||
data::PowerSeries< Arch, T, OutputAlloc > & | output, | ||
Args &&... | args | ||
) |
Form power spectrum using absolute squared with nearest neighbour comparison.
Each power measurement is found by comparing neighbouring bins such that output[i] = max(|input[i]|^2, |input[i]-input[i-1]|^2)
resource | A panda PoolResource object | |
[in] | input | A FrequencySeries object of complex data type |
[out] | output | A FrequencySeries object of real data type |
args... | Additional arguments to be forwarded to implementation |
Arch | A processing architecture |
T | The value type of the input and output FrequencySeries |
Alloc | The allocator type of the input and output FrequencySeries |
Args | Additional template parameters for call forwarding |
Definition at line 43 of file Pwft.cpp.