public InterpolationAlgorithm(string algorithmName) { if (string.IsNullOrEmpty(algorithmName)) { Value = null; return; } var n = algorithmName.ToLower(); foreach (var tuple in AlgorithmNames) { if (tuple.Item1.IndexOf(n) >= 0) { Value = tuple.Item2; return; } } throw new ArgumentException($"Unknown interpolation algorithm '{algorithmName}'; Specify one of the following: CanonicalSpline, CatmullRomSpline, UniformCatmullRomSpline or ChordalCatmullRomSpline"); }
public InterpolationAlgorithm(OxyPlot.IInterpolationAlgorithm algorithm) { Value = algorithm; }