Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
        /// <summary>
        /// 对齐后的数据,进行滤波。
        /// </summary>
        /// <param name="aligned"></param>
        /// <returns></returns>
        private RmsedNumeral FilterAlignedValue(RmsedNumeral aligned)
        {
            var result = AdjustFilter.Filter(aligned);

            this.CurrentFilteredFraction = result;

            return(result);
        }