Pikachuk
Pikachuk

Reputation: 1

Is there any scipy interp1d equivalent in C++?

I have been working on porting a python library to C++ because I need to make a program relying on it but the fact it's in python using cython and various libs like scipy etc would make it hard to port it to various platforms. I was able to find libraries such as xtensor that help me adapt the NumPy calls to equivalent code in order to port the code in an accurate manner, however I'm kind of struggling at this line:

interp_func = interpolate.interp1d(
    nonzero_indices, continuous_f0[continuous_f0 > 0], kind=kind
)

it seems to rely on the interp1d function of scipy, and I can't really find any equivalents in C++

I wonder if anyone knows of a way I could adapt this line in C++ ?

If it helps here is a link to the full original code of the function i'm working on https://github.com/r9y9/nnmnkwii/blob/master/nnmnkwii/preprocessing/f0.py

Upvotes: 0

Views: 1843

Answers (0)

Related Questions