Beispiel #1
0
        public static InterpolationInterface GetInterpolator(string method, params object[] arguments)
        {
            InterpolationInterface interpolator = null;

            Type interpolator_type = GetInterpolationType(method);

            if (interpolator_type != null)
            {
                interpolator = Activator.CreateInstance(interpolator_type, arguments) as InterpolationInterface;
            }

            return(interpolator);
        }
Beispiel #2
0
        public static InterpolationInterface GetInterpolator(Type type, params object[] arguments)
        {
            InterpolationInterface interpolator = Activator.CreateInstance(type, arguments) as InterpolationInterface;

            return(interpolator);
        }
Beispiel #3
0
        public static InterpolationInterface GetInterpolator(Type type, double[] x, double[] y)
        {
            InterpolationInterface interpolator = Activator.CreateInstance(type, x, y) as InterpolationInterface;

            return(interpolator);
        }