(self, x, rot=0)
return sum(np.abs(x)**(2.+4.*np.arange(N)/(N-1.)))**0.5
Diffpow test objective function
Diffpow test objective function
Diffpow test objective function
def diffpow(self, x, rot=0):
        """Diffpow test objective function"""
        N = len(x)
        if rot:
            x = rotate(x)
        return sum(np.abs(x)**(2.+4.*np.arange(N)/(N-1.)))**0.5
def diffpow ( self , x , rot = 0 ) : N = len ( x ) if rot : x = rotate ( x ) return sum ( np . abs ( x ) ** ( 2. + 4. * np . arange ( N ) / ( N - 1. ) ) ) ** 0.5