def function(self, x, y, amp, beta, n, m, complex_bool, center_x, center_y):
        """

        :param x: x-coordinate, numpy array
        :param y: y-ccordinate, numpy array
        :param amp: amplitude normalization
        :param beta: shaplet scale
        :param n: order of polynomial
        :param m: roational invariance
        :param center_x: center of shapelet
        :param center_y: center of shapelet
        :return: amplitude of shapelet at possition (x, y)
        """
        r, phi = param_util.cart2polar(x, y, center=np.array([center_x, center_y]))
        if complex_bool is True:
            return amp * self._chi_n_m(r, beta, n, m) * np.exp(-1j * m * phi).imag
        else:
            return amp * self._chi_n_m(r, beta, n, m) * np.exp(-1j * m * phi).real
def function ( self , x , y , amp , beta , n , m , complex_bool , center_x , center_y ) : r , phi = param_util . cart2polar ( x , y , center = np . array ( [ center_x , center_y ] ) ) if complex_bool is True : return amp * self . _chi_n_m ( r , beta , n , m ) * np . exp ( - 1j * m * phi ) . imag else : return amp * self . _chi_n_m ( r , beta , n , m ) * np . exp ( - 1j * m * phi ) . real
:param x: x-coordinate, numpy array
        :param y: y-ccordinate, numpy array
        :param amp: amplitude normalization
        :param beta: shaplet scale
        :param n: order of polynomial
        :param m: roational invariance
        :param center_x: center of shapelet
        :param center_y: center of shapelet
        :return: amplitude of shapelet at possition (x, y)