Ejemplo n.º 1
0
    def _get_initial_pts(self, dimension, pt_range):
        """Generates points randomly with a gaussian distribution (sigma = 1)
        """

        # nested list comprehension.  Too dense for good readability?
        points = [[random_gauss(0.0, 1) for axis in range(dimension)] for pt_idx in pt_range]
        return array(points, "d")
Ejemplo n.º 2
0
    def _get_initial_pts(self, dimension, pt_range):
        """Generates points randomly with a gaussian distribution (sigma = 1)
        """

        # nested list comprehension.  Too dense for good readability?
        points = [[random_gauss(0., 1) for axis in range(dimension)] \
            for pt_idx in pt_range]
        return array(points, 'd')
Ejemplo n.º 3
0
 def _get_initial_pts(self, dimension, pt_range):
     points = [[random_gauss(0., 1) for axis in range(dimension)] \
         for pt_idx in pt_range]
     return array(points, 'd')