示例#1
0
        public double GetXile(XileInfo xileInfo)
        {
            Func <double> func = () =>
            {
                double xileResult;
                var    lx = Container.DataCount * xileInfo.NthXile / (double)xileInfo.Xile;
                xileResult = this.CalcXile(lx);

                return(xileResult);
            };

            return(this.Container.Register(xileInfo.ToString(), func));
        }
示例#2
0
        public double GetXile(XileInfo xileInfo)
        {
            Func<double> func = () =>
            {
                double xileResult;
                var lx = Container.DataCount * xileInfo.NthXile / (double)xileInfo.Xile;
                xileResult = this.CalcXile(lx);

                return xileResult;
            };

            return this.Container.Register(xileInfo.ToString(), func);
        }
示例#3
0
        public string Xile(int NthXile, int Xile)
        {
            try
            {
                dynamic statistics = HttpContext.Application["inquirer"];

                var info = new XileInfo((Xiles)Xile, NthXile);
                var result = Math.Round(statistics.GetXile(info), 4);

                return result.ToString();
            } catch (Exception ex)
            {
                return ex.Message;
            }
        }