Browse Source

interpolation: now using Precision.AlmostZero

Signed-off-by: Christoph Ruegg <git@cdrnet.ch>
pull/36/head
Christoph Ruegg 17 years ago
parent
commit
647159d7a4
  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?
// TODO: Number.AlmostZero(offset) instead of ==
if (offset == 0.0)
if (offset.AlmostZero())
{
return this.values[closestPoint];
}

Loading…
Cancel
Save