socceraction.xthreat.ExpectedThreat.interpolator#

ExpectedThreat.interpolator(kind='linear')#

Interpolate over the pitch.

This is a wrapper around scipy.interpolate.interp2d().

Parameters

kind ({'linear', 'cubic', 'quintic'}, optional) – The kind of spline interpolation to use. Default is ‘linear’.

Returns

A function that interpolates xT values over the pitch.

Return type

callable