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); }
public static InterpolationInterface GetInterpolator(Type type, params object[] arguments) { InterpolationInterface interpolator = Activator.CreateInstance(type, arguments) as InterpolationInterface; return(interpolator); }
public static InterpolationInterface GetInterpolator(Type type, double[] x, double[] y) { InterpolationInterface interpolator = Activator.CreateInstance(type, x, y) as InterpolationInterface; return(interpolator); }