numpy - spline interpolation between two arrays in python -


i trying spline interpolation between 2 arrays in python. data set looks this:

           |      5        15     -------+--------------------         1    32.68      29.16         2    32.73      27.20         3    32.78      28.24         4    32.83      27.27         5    32.88      25.27         6    32.93      31.35         7    32.98      27.39         8    33.03      26.42         9    33.08      27.46        10    33.13      30.50        11    33.18      27.53        12    33.23      29.57        13    33.23      27.99        14    33.23      28.64        15    33.23      26.68        16    33.23      29.72 

and trying spline interpolation between 2 points , produce values 10, (but spline interpolated):

           |   10       -----+--------         1       30.92         2       29.965         3       30.51         4       30.05         5       29.075         6       32.14         7       30.185         8       29.725         9       30.27         10      31.815         11      30.355         12      31.4         13      30.61         14      30.935         15      29.955         16      31.475 

i have been looking @ examples of using scipy.interpolate.interpolatedunivariatespline, seems take 1 array x , 1 y, , can't figure out how make interpolate these 2 arrays.

can please point me in right direction?


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -