Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
|
Class for time series data. More...
#include <cheetah/data/TimeSeries.h>
Public Types | |
typedef Alloc | Allocator |
![]() | |
typedef DeviceMemoryType::Iterator | Iterator |
typedef DeviceMemoryType::ConstIterator | ConstIterator |
typedef Alloc | Allocator |
typedef Arch | Architecture |
typedef ValueType | ValueType |
Public Member Functions | |
TimeSeries (Allocator const &alloc=Allocator()) | |
Construct a regularly sampled time series. More... | |
TimeSeries (std::size_t size, Allocator const &alloc=Allocator()) | |
Construct a regularly sampled time series. More... | |
template<typename OtherArch , typename OtherAlloc > | |
TimeSeries (TimeSeries< OtherArch, ValueType, OtherAlloc > const ©, Alloc const &allocator=Allocator()) | |
Construct a regularly sampled time series copying data from device memory. | |
TimeSeries (TimeType const &dt, std::size_t size=0, Allocator const &alloc=Allocator()) | |
Construct a time series with a sampling interval. More... | |
TimeType const & | sampling_interval () const |
Retrive the sampling interval. More... | |
void | sampling_interval (TimeType const &dt) |
Set the sampling interval. More... | |
![]() | |
Series (Allocator const &) | |
Series (std::size_t size, Allocator const &) | |
Series (Series const ©) | |
Series (Series &©_to_move) | |
Series (Series< OtherArch, ValueType, OtherAlloc > const ©, Alloc const &allocator) | |
copies Series data to the device | |
Series (Series< OtherArch, ValueType, OtherAlloc > const ©) | |
ConstIterator | begin () const |
Iterators to device memory. More... | |
Iterator | begin () |
Iterator | end () |
ConstIterator | end () const |
ConstIterator | cbegin () const |
ConstIterator | cend () const |
std::size_t | size () const |
the size of the series | |
void | resize (std::size_t size) |
resize the data | |
Class for time series data.
Arch | The architecture on which the time series will be stored |
ValueType | The underlying value type of the time series |
Alloc | The allocator type of the time series |
Definition at line 47 of file TimeSeries.h.
|
explicit |
Construct a regularly sampled time series.
The time series is initialised to have zero size and a default sampling interval of 1 second is set.
Definition at line 38 of file TimeSeries.cpp.
|
explicit |
Construct a regularly sampled time series.
The time series is initialised to have the specified size and a default sampling interval of 1 second is set.
Definition at line 31 of file TimeSeries.cpp.
ska::cheetah::data::TimeSeries< Arch, ValueType, Alloc >::TimeSeries | ( | TimeType const & | dt, |
std::size_t | size = 0 , |
||
Allocator const & | alloc = Allocator() |
||
) |
Construct a time series with a sampling interval.
The time series is initialised to have zero size
dt | The sampling interval of the time series. |
Definition at line 52 of file TimeSeries.cpp.
TimeType const & ska::cheetah::data::TimeSeries< Arch, ValueType, Alloc >::sampling_interval | ( | ) | const |
Retrive the sampling interval.
Definition at line 64 of file TimeSeries.cpp.
void ska::cheetah::data::TimeSeries< Arch, ValueType, Alloc >::sampling_interval | ( | TimeType const & | dt | ) |
Set the sampling interval.
dt | The new sampling interval |
Definition at line 70 of file TimeSeries.cpp.