|
|
@ -166,8 +166,7 @@ namespace MathNet.Numerics.Interpolation.Algorithms |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// trivial case: on a known sample point?
|
|
|
// trivial case: on a known sample point?
|
|
|
// TODO: Number.AlmostZero(offset) instead of ==
|
|
|
if (offset.AlmostZero()) |
|
|
if (offset == 0.0) |
|
|
|
|
|
{ |
|
|
{ |
|
|
return this.values[closestPoint]; |
|
|
return this.values[closestPoint]; |
|
|
} |
|
|
} |
|
|
|