//--------------------------------------------------------------------------------------------------------------------------------------------------------- public void Filter_TaskInit() { int freq = 100; double samplerate = 1 / Filter_hThread_PERIOD; bool type = true; Filter = new FilterButterworth(freq, samplerate, type); Filter_isRunning = true; }
//---------------------------------------------------------------------------------------------------------------------------------------------------------- public void Filter_TaskInit() // apply numerical filter (unused) + artefact detection and use of intermediate variables { double freq1 = 60; // f for low-pass double freq2 = 0.5; //f dor high-pass double freq3 = 50; // f for notch double samplerate = numScans; Filterb = new FilterButterworth(freq1, samplerate, 1); //low-pass Filterh = new FilterButterworth(freq2, samplerate, 2); //high-pass Filterc = new FilterButterworth(freq3, samplerate, 3); //notch }