(p)
return A
Return a 2D projection with a circular anchor placement.
Return a 2D projection with a circular anchor placement.
Return a 2D projection with a circular anchor placement .
def init_radial(p):
        """
        Return a 2D projection with a circular anchor placement.
        """
        assert p > 0
        if p == 1:
            axes_angle = [0]
        elif p == 2:
            axes_angle = [0, np.pi / 2]
        else:
            axes_angle = np.linspace(0, 2 * np.pi, p, endpoint=False)

        A = np.c_[np.cos(axes_angle), np.sin(axes_angle)]
        return A
def init_radial ( p ) : assert p > 0 if p == 1 : axes_angle = [ 0 ] elif p == 2 : axes_angle = [ 0 , np . pi / 2 ] else : axes_angle = np . linspace ( 0 , 2 * np . pi , p , endpoint = False ) A = np . c_ [ np . cos ( axes_angle ) , np . sin ( axes_angle ) ] return A