I’m using PCHIPInterpolation to do some interpolation. itp = Interpolator(xs, ys);
This program absolutely does not allow any values in its x to be duplicates. I now have some values like the below in my data sets: xs = [-5.0, -0.0, 0.0, 10.0, 19.0];
The interpolation would stop and give an error: “xs must be stricly increasing”. I tried to fix this issue by first using the unique function, but unique actually think they are different.
I’m just hoping to find an alternative solution to address the issue, so that I don’t have to wait for the next version of Julia before I can process my data.
For the NaN issue. I have decided to fill it up with some identical numerical values to get it working.
you could always perform minor type piracy and redefine Base.unique to do the thing it will do as of the next release. It’s not a great solution, but it will work.