Browse Source

interpolation: now using Precision.AlmostZero

Signed-off-by: Christoph Ruegg <git@cdrnet.ch>
pull/2/head
Christoph Ruegg 17 years ago
parent
commit
eb02fefd3d
  1. 3
      src/Managed/Interpolation/Algorithms/BarycentricInterpolation.cs

3
src/Managed/Interpolation/Algorithms/BarycentricInterpolation.cs

@ -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];
} }

Loading…
Cancel
Save