diff --git a/src/.gitignore b/src/.gitignore index f47d9820..44ac5396 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -8,3 +8,5 @@ obj TestResults *.sdf Version.cs + +*.ReSharper \ No newline at end of file diff --git a/src/Numerics/Interpolation/Algorithms/NevillePolynomialInterpolation.cs b/src/Numerics/Interpolation/Algorithms/NevillePolynomialInterpolation.cs index 755b525a..8000afe2 100644 --- a/src/Numerics/Interpolation/Algorithms/NevillePolynomialInterpolation.cs +++ b/src/Numerics/Interpolation/Algorithms/NevillePolynomialInterpolation.cs @@ -127,7 +127,7 @@ namespace MathNet.Numerics.Interpolation.Algorithms } for (var i = 1; i < samplePoints.Count; ++i) - if (samplePoints[i] <= samplePoints[i - 1]) + if (samplePoints[i] == samplePoints[i - 1]) throw new ArgumentException(Resources.Interpolation_Initialize_SamplePointsNotUnique, "samplePoints"); _points = samplePoints;