| 22 | using namespace Suscan; |
| 23 | |
| 24 | void |
| 25 | AnalyzerParams::updateExposedParams(void) |
| 26 | { |
| 27 | this->channelUpdateInterval = this->c_params.channel_update_int; |
| 28 | this->psdUpdateInterval = this->c_params.psd_update_int; |
| 29 | this->spectrumAvgAlpha = this->c_params.detector_params.alpha; |
| 30 | this->sAvgAlpha = this->c_params.detector_params.beta; |
| 31 | this->nAvgAlpha = this->c_params.detector_params.gamma; |
| 32 | this->snr = this->c_params.detector_params.snr; |
| 33 | this->windowSize = this->c_params.detector_params.window_size; |
| 34 | this->minFreq = this->c_params.min_freq; |
| 35 | this->maxFreq = this->c_params.max_freq; |
| 36 | this->mode = |
| 37 | static_cast<enum Mode>(this->c_params.mode); |
| 38 | this->windowFunction = |
| 39 | static_cast<enum WindowFunction>(this->c_params.detector_params.window); |
| 40 | } |
| 41 | |
| 42 | AnalyzerParams::AnalyzerParams(void) : Serializable() |
| 43 | { |