Smoothing algorithm using the cos^N function
function spliceCosN extends TRANSFORM.Icons.Function; input Real pos "Returned value for >x+deltax/2"; input Real neg "Returned value for <x-deltax/2"; input Real x "Value of interest (i.e. x - x_t)"; input Real deltax = 1 "Transition width"; input Integer n = 2 "(n-1)th order continuous"; output Real y; end spliceCosN;