Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Public Member Functions | Public Attributes | List of all members
ska::cheetah::tdrt::cuda::TdrtMap Struct Reference

Functor for remapping accelerated time series. More...

Inheritance diagram for ska::cheetah::tdrt::cuda::TdrtMap:
Inheritance graph
Collaboration diagram for ska::cheetah::tdrt::cuda::TdrtMap:
Collaboration graph

Public Member Functions

 TdrtMap (data::AccelerationType acceleration, std::size_t size, data::TimeType tsamp)
 Create new functor instance. More...
 
__host__ __device__ std::size_t operator() (std::size_t idx) const
 Functor for remapping timeseries using time domain resampling.
 

Public Attributes

double accel_fact
 
double size
 

Detailed Description

Functor for remapping accelerated time series.

For use with thrust::gather

Definition at line 21 of file TdrtMap.cuh.

Constructor & Destructor Documentation

◆ TdrtMap()

ska::cheetah::tdrt::cuda::TdrtMap::TdrtMap ( data::AccelerationType  acceleration,
std::size_t  size,
data::TimeType  tsamp 
)

Create new functor instance.

Functor for remapping timeseries using time domain resampling.

Parameters
[in]accelerationThe acceleration to resample to
[in]sizeThe size if the input time series
[in]tsampThe sampling interval of the time series

Definition at line 14 of file TdrtMap.cu.

15 {
16  this->accel_fact = (((acceleration * tsamp) / (2.0 * boost::units::si::constants::codata::c))).value();
17  this->size = (double) size;
18 }

The documentation for this struct was generated from the following files: