interpolate_halflevels
- typhon.math.interpolate_halflevels(x, axis=0)[source]
Returns the linear inteprolated halflevels for given array.
- Parameters:
x (ndarray) – Data array.
axis (int) – Axis to interpolate along.
- Returns:
Values at halflevels.
- Return type:
ndarray
Examples
>>> interpolate_halflevels([0, 1, 2, 4]) array([ 0.5, 1.5, 3. ])