time_series_fft.sdl
Scema for the time_series_fft.cpp example. Compile this schema using rdm-compile as follows:
rdm-compile -s time_series_fft.sdl
and include the generated struct definition file in your code as follows:
#include "time_series_ftp_structs.h"
/** \brief Schema for holding measurements with FFT \ref RDM_CPP::TIME_SERIES_STAT
*/
create table measurement
(
time_stamp_current uint64 primary key,
value_current double not null
);
create table measurement_fft1
(
value_range double array [17] not null,
time_stamp_first uint64 not null,
time_stamp_last uint64 primary key
);
create table measurement_fft2
(
value_range double array [32] not null,
time_stamp_first uint64 not null,
time_stamp_last uint64 primary key
);