Esempio n. 1
0
        public static Bessel InterpolateFrom(IEnumerable <Node> nodes, double value)
        {
            var bessel = new Bessel(nodes);

            bessel.Interpolate(value);
            return(bessel);
        }
        public static StirlingBessel InterpolateFrom(IEnumerable <Node> nodes, double value)
        {
            var q = Stirling.Q(nodes.ToArray(), value);

            double result;

            if (Math.Abs(q) <= 0.25)
            {
                result = Stirling.InterpolateFrom(nodes, value).Result;
            }
            else
            {
                result = Bessel.InterpolateFrom(nodes, value).Result;
            }

            return(new StirlingBessel(result));
        }