3.1.1. Slope Function

hysteresis.defaultDataFuncs.defaultSlopeFunction(xy)[source]

The standard slope function. The slope is undefined for reversal indexes.

For middle points, a centeral finite difference scheme is used, which is O(h**2) accurate for constant steps h.

The slope is equal to the left difference for the end, and right difference for the start.

Parameters:

xy (Array) – The input xy data in dimension [Ndata, 2] .

Return type:

The slope of the input cuve at each x point.