wisdem.commonse.utilities.smooth_max

wisdem.commonse.utilities.smooth_max(yd, ymax, pct_offset=0.01, dyd=None)[source]

array max, uses cubic spline to smoothly transition. derivatives with respect to array and max value. width of transition can be controlled, and chain rules for differentiation