| 14 | |
| 15 | |
| 16 | int main (int argc, char *argv[]) |
| 17 | { |
| 18 | int res = 0; |
| 19 | try |
| 20 | { |
| 21 | double *window_data = NULL; |
| 22 | int window_len = 20; |
| 23 | for (int window_function = 0; window_function < 4; window_function++) |
| 24 | { |
| 25 | std::cout << "Current window function ID: " << window_function << std::endl; |
| 26 | std::cout << "Window data :" << std::endl; |
| 27 | |
| 28 | // just apply different windowing algorithms and print results |
| 29 | switch (window_function) |
| 30 | { |
| 31 | case 0: |
| 32 | window_data = DataFilter::get_window (window_function, window_len); |
| 33 | break; |
| 34 | case 1: |
| 35 | window_data = DataFilter::get_window (window_function, window_len); |
| 36 | break; |
| 37 | case 2: |
| 38 | window_data = DataFilter::get_window (window_function, window_len); |
| 39 | break; |
| 40 | case 3: |
| 41 | window_data = DataFilter::get_window (window_function, window_len); |
| 42 | break; |
| 43 | } |
| 44 | std::cout << window_data << std::endl; |
| 45 | delete[] window_data; |
| 46 | } |
| 47 | } |
| 48 | catch (const BrainFlowException &err) |
| 49 | { |
| 50 | BoardShim::log_message ((int)LogLevels::LEVEL_ERROR, err.what ()); |
| 51 | res = err.exit_code; |
| 52 | } |
| 53 | |
| 54 | return res; |
| 55 | } |
nothing calls this directly
no test coverage detected