function spliceSigmoid input Real pos "Result after transition point"; input Real neg "Result before transition point"; input Real x "Value of interest (e.g., x = val-x_t)"; input Real k = 100 "Transition region factor (larger #s increase slope steepness)"; output Real y "Smoothed result"; end spliceSigmoid;