/// <summary> /// 构造函数 /// </summary> /// <param name="MaxError"></param> /// <param name="IsRelativeError"></param> public CyclicalNumerFilter(double MaxError, bool IsRelativeError) { this.MaxError = MaxError; AdjustFilter = new AdjustFilter(); FactionCutter = new PeriodPipeFilter(1, 0.5); Index = -1; ErrorJudge = new ErrorJudge(MaxError, IsRelativeError); }
/// <summary> /// 对齐后的数据,进行滤波。 /// </summary> /// <param name="aligned"></param> /// <returns></returns> private RmsedNumeral FilterAlignedValue(RmsedNumeral aligned) { var result = AdjustFilter.Filter(aligned); this.CurrentFilteredFraction = result; return(result); }