C++ Example
#include "wavelet_all.hpp"
int main()
{
float samplerate_hz(100.);
float frequency_min = 0.1;
float frequency_max = 50.;
float bands_per_octave = 8;
frequency_min,
frequency_max,
bands_per_octave);
std::size_t numbands(cwt.size());
cwt.reset();
while (true) {
double value =
cwt.update(value);
for (unsigned int band=0; band<numbands; band++) {
std::cout << cwt.result_complex[band] << " ";
}
std::cout << std::endl;
}
return 0;
}
Python Example
TODO
- Todo:
- python example
Prev: Compilation | Up: Home.