Closed VikingScientist closed 6 years ago
I guess this is a stupid floating point precision error. The last entry is 0.2+4e-17
. One solution would be to snap to nearest knot as defined by state.knot_tolerance
. The question then becomes where do we put this snapping mechanic in order to produce the least amount of overhead, maintenance and maximum readability?
Prints the following:
Notice the last point greville point is outside the BSpline basis domain [0, 0.2]. This produces all sorts of problems with for instance rebuild calls and other interpolation schemes.