1 #ifndef DYSCO_DATA_COLUMN_H
2 #define DYSCO_DATA_COLUMN_H
41 double distributionTruncation)
override;
45 <<
"Warning: Initializing random number generator with static seed!\n";
46 _rnd = std::mt19937();
52 const float *metaBuffer,
size_t nRow,
56 size_t blockRow,
size_t a1,
size_t a2)
override;
60 virtual void encode(ThreadDataBase *threadData,
69 size_t nChannels)
const override;
75 ThreadData(std::unique_ptr<TimeBlockEncoder> timeBlockEncoder)
77 std::unique_ptr<TimeBlockEncoder>
encoder;
A column for storing compressed complex values with an approximate Gaussian distribution.
virtual void decode(TimeBlockBuffer< data_t > *buffer, const symbol_t *data, size_t blockRow, size_t a1, size_t a2) override
DyscoDataColumn(const DyscoDataColumn &source)=delete
virtual void initializeDecode(TimeBlockBuffer< data_t > *buffer, const float *metaBuffer, size_t nRow, size_t nAntennae) override
DyscoDataColumn(DyscoStMan *parent, int dtype)
Create a new column.
virtual void encode(ThreadDataBase *threadData, TimeBlockBuffer< data_t > *buffer, float *metaBuffer, symbol_t *symbolBuffer, size_t nAntennae) override
virtual size_t symbolCount(size_t nRowsInBlock, size_t nPolarizations, size_t nChannels) const override
void SetStaticRandomizationSeed()
void operator=(const DyscoDataColumn &source)=delete
virtual size_t defaultThreadCount() const override
virtual size_t metaDataFloatCount(size_t nRow, size_t nPolarizations, size_t nChannels, size_t nAntennae) const override
virtual ~DyscoDataColumn()
Destructor.
Normalization _normalization
std::unique_ptr< TimeBlockEncoder > _decoder
DyscoDistribution _distribution
std::unique_ptr< StochasticEncoder< float > > _gausEncoder
virtual void Prepare(DyscoDistribution distribution, Normalization normalization, double studentsTNu, double distributionTruncation) override
virtual std::unique_ptr< ThreadDataBase > initializeEncodeThread() override
size_t nRowsInBlock() const
The main class for the Dysco storage manager.
A column for storing compressed values in a threaded way, tailored for the data and weight columns th...
TimeBlockBuffer< data_t >::symbol_t symbol_t
virtual void shutdown() override final
Define real & complex conjugation for non-complex types and put comparisons into std namespace.
ThreadData(std::unique_ptr< TimeBlockEncoder > timeBlockEncoder)
std::unique_ptr< TimeBlockEncoder > encoder