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")
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')
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')