/// <summary> /// 获取Y值 /// </summary> /// <param name="xValue"></param> /// <returns></returns> public override double GetY(double xValue) { var nexts = GetNexts((int)xValue); double temp = DoubleUtil.Average(nexts); return(temp); }
public override double GetY(double xValue) { List <double> nexts = GetNexts(); if (nexts.Count == Order) { double temp = DoubleUtil.Average(nexts); return(temp); } return(0); //throw new NotImplementedException(); }