コード例 #1
0
ファイル: nmds.py プロジェクト: pombredanne/pycogent-1
    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")
コード例 #2
0
ファイル: nmds.py プロジェクト: cxhernandez/pycogent
    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')
コード例 #3
0
ファイル: NMDS.py プロジェクト: cts-admin/ECOLOG
 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')