xnn.common.models.dispersion.switching_function#
- xnn.common.models.dispersion.switching_function(r, cutoff, width)[source]#
Quintic switching window: 1 below
cutoff - width, 0 abovecutoff.width <= 0gives the sharp cutoff (the upstream default). Inside the windowx = (cutoff - r) / widthruns from 0 to 1 and the switch isx^3 (10 - 15 x + 6 x^2), with zero slope at both ends.