public void SetInterpolationMethod(SplineInterpolationMethod method)
        {
            switch (method)
            {
                case SplineInterpolationMethod.Polynomial:
                    creationFun = Interpolation.CreatePolynomial;
                    break;
                case SplineInterpolationMethod.Cubic:
                    creationFun = Interpolation.CreateNaturalCubicSpline;
                    break;
                case SplineInterpolationMethod.Linear:
                    creationFun = Interpolation.CreateLinearSpline;
                    break;
            }

            createSpline();
        }
Example #2
0
        public void SetInterpolationMethod(SplineInterpolationMethod method)
        {
            switch (method)
            {
            case SplineInterpolationMethod.Polynomial:
                creationFun = Interpolation.CreatePolynomial;
                break;

            case SplineInterpolationMethod.Cubic:
                creationFun = Interpolation.CreateNaturalCubicSpline;
                break;

            case SplineInterpolationMethod.Linear:
                creationFun = Interpolation.CreateLinearSpline;
                break;
            }

            createSpline();
        }