/// <summary> /// Создает линейный источник-эмулятор данных /// </summary> /// <param name="_noiser"></param> /// <param name="_min"></param> /// <param name="_max"></param> /// <param name="_step"></param> public SourceEmulatorLinear(EmulatorSettings _emulatorSettings, Noiser _noiser, double _min, double _max) : base(_emulatorSettings, _noiser) { min = _min; max = _max; thread.Name = "SourceEmulatorLinear"; }
/// <summary> /// Создает синусоидальный источник-эмулятор данных /// </summary> /// <param name="_noiser"></param> /// <param name="_step"></param> /// <param name="_amplitude"></param> /// <param name="_average"></param> public SourceEmulatorSin(EmulatorSettings _emulatorSettings, Noiser _noiser, double _amplitude, double _average, double _period) : base(_emulatorSettings, _noiser) { amplitude = _amplitude; average = _average; period = _period; thread.Name = "SourceEmulatorSin"; }
/// <summary> /// Создает источник-эмулятор данных по функции частичной суммы ряда Фурье /// </summary> /// <param name="_noiser"></param> /// <param name="_halfOffset"></param> /// <param name="_aList"></param> /// <param name="_bList"></param> public SourceEmulatorFourier(EmulatorSettings _emulatorSettings, Noiser _noiser, double _halfOffset, List<double> _aList, List<double> _bList) : base(_emulatorSettings, _noiser) { if (_aList.Count != _bList.Count) throw new ExceptionServer("Coefficient lists length mismatch"); aList = _aList; bList = _bList; halfOffset = _halfOffset; order = aList.Count; thread.Name = "SourceEmulatorFourier"; current = -Math.PI * order; }
/// <summary> /// Создает источник-эмулятор данных /// </summary> /// <param name="_noiser"></param> /// <param name="_interval"></param> public SourceEmulator(EmulatorSettings _emulatorSettings, Noiser _noiser) { noiser = _noiser; settings = _emulatorSettings; IsCorrect = true; }