private void InitAverager() { _scannerCompareRxLevel = -_SIMPLE_AVERAGE_MIN; _smaTunedFrequecy = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); _smaTunedBandwidth = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); _smaTunedPeakPowerBandwidth = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); }
public void TestThis() { Simova Sma = new Simova(5, 0); Console.WriteLine(Sma.Add(1).ToString()); Console.WriteLine(Sma.BufferToString()); Console.WriteLine(Sma.Add(2).ToString()); Console.WriteLine(Sma.BufferToString()); Console.WriteLine(Sma.Add(3).ToString()); Console.WriteLine(Sma.BufferToString()); Console.WriteLine(Sma.Add(4).ToString()); Console.WriteLine(Sma.BufferToString()); Console.WriteLine(Sma.Add(5).ToString()); Console.WriteLine(Sma.BufferToString()); Console.WriteLine(Sma.Add(6).ToString()); Console.WriteLine(Sma.BufferToString()); Console.WriteLine(Sma.Add(7).ToString()); Console.WriteLine(Sma.BufferToString()); if (Sma.Add(8) != 6) { throw new Exception("Simova selftest failed!"); } }
private void InitAverager() { _scannerCompareRxLevel =-_SIMPLE_AVERAGE_MIN; _smaTunedFrequecy = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); _smaTunedBandwidth = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); _smaTunedPeakPowerBandwidth = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); }