GSL interpolation error, values must be x values must be monotonically increasing
Posted
by
pyCthon
on Stack Overflow
See other posts from Stack Overflow
or by pyCthon
Published on 2012-09-18T14:59:33Z
Indexed on
2012/09/18
15:38 UTC
Read the original article
Hit count: 203
Hi my problem is that my data set is monotonically increasing but towards the end the of the data it looks like it does below ,where some of the x[i-1] = x[i]
as shown below. This causes an error to be raised in GSL because it thinks that the values are not monotonically increasing. Is there a solution, fix or work around for this problem?
the values are already double precision ,this particular data set starts at 9.86553e-06 and ends at .999999
would the only solution be to offset every value in a for loop?
0.999981
0.999981
0.999981
0.999982
0.999982
0.999983
0.999983
0.999983
0.999984
0.999984
0.999985
0.999985
0.999985
© Stack Overflow or respective owner