[common] Add function for generic interpolation

Merged Timo Koch requested to merge feature/linearinterpolation into master

Merge request reports