def bspline(x, n):
 ax = (- abs(asarray(x)))
 (funclist, condfuncs) = _bspline_piecefunctions(n)
 condlist = [func(ax) for func in condfuncs]
 return piecewise(ax, condlist, funclist)

def bspline ( x , n ) : ax = ( - abs ( asarray ( x ) ) ) ( funclist , condfuncs ) = _bspline_piecefunctions ( n ) condlist = [ func ( ax ) for func in condfuncs ] return piecewise ( ax , condlist , funclist )
b-spline basis function of order n .