(X, r=1)
return result
It implements the following formula:

        .. math::
            \\varphi(\\boldsymbol{x}) = 
            \\left( 1 - \\frac{\\boldsymbol{x}}{r}\\right)^4 +
            \\left( 4 \\frac{ \\boldsymbol{x} }{r} + 1 \\right)

        :param numpy.ndarray X: the norm x in the formula above.
        :param float r: the parameter r in the formula above.

        :return: result: the result of the formula above.
        :rtype: float
It implements the following formula:
It implements the following formula :
def beckert_wendland_c2_basis(X, r=1):
        """
        It implements the following formula:

        .. math::
            \\varphi(\\boldsymbol{x}) = 
            \\left( 1 - \\frac{\\boldsymbol{x}}{r}\\right)^4 +
            \\left( 4 \\frac{ \\boldsymbol{x} }{r} + 1 \\right)

        :param numpy.ndarray X: the norm x in the formula above.
        :param float r: the parameter r in the formula above.

        :return: result: the result of the formula above.
        :rtype: float
        """
        arg = X / r
        first = np.where((1 - arg) > 0, np.power((1 - arg), 4), 0)
        second = (4 * arg) + 1
        result = first * second
        return result
def beckert_wendland_c2_basis ( X , r = 1 ) : arg = X / r first = np . where ( ( 1 - arg ) > 0 , np . power ( ( 1 - arg ) , 4 ) , 0 ) second = ( 4 * arg ) + 1 result = first * second return result