fix extrapolation option in iterpolateIndex
Currently when using interpolateIndex
with extrapolation
set to both we only get the extrapolation of outside calues but no interpolation of inside values. This MR fixes this issue and also reduces extrapolation
to a boolean flag as the options to forward and backward extrapolate only seemed unnecessary to me.
Edited by David Schäfer