Implement linear resampling in C++