コード例 #1
0
        /// <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);
        }
コード例 #2
0
        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();
        }