コード例 #1
0
def test_average_points_dist():
    p0 = Point(0.0, 0.0, 0.0, 3.0)
    p1 = Point(0.0, 0.0, 1.0, 3.0)
    p2 = Point(0.0, 1.0, 0.0, 3.0)
    p3 = Point(1.0, 0.0, 0.0, 3.0)
    av_dist = mm.average_points_dist(p0, [p1, p2, p3])
    assert av_dist == 1.0
コード例 #2
0
ファイル: test_morphmath.py プロジェクト: yamagatm/NeuroM
def test_average_points_dist():
    p0 = Point(0.0, 0.0, 0.0, 3.0, 1)
    p1 = Point(0.0, 0.0, 1.0, 3.0, 1)
    p2 = Point(0.0, 1.0, 0.0, 3.0, 1)
    p3 = Point(1.0, 0.0, 0.0, 3.0, 1)
    av_dist = mm.average_points_dist(p0, [p1, p2, p3])
    nt.ok_(av_dist == 1.0)
コード例 #3
0
 def __init__(self, points):
     super(SomaSimpleContour, self).__init__(points)
     points = np.array(self._points)
     self.radius = morphmath.average_points_dist(self.center,
                                                 points[:, COLS.XYZ])
コード例 #4
0
ファイル: _soma.py プロジェクト: BlueBrain/NeuroM
 def __init__(self, points):
     super(SomaSimpleContour, self).__init__(points)
     points = np.array(self._points)
     self.radius = morphmath.average_points_dist(
         self.center, points[:, COLS.XYZ])
コード例 #5
0
ファイル: _soma.py プロジェクト: nagyistge/NeuroM
 def __init__(self, points):
     super(SomaThreePoint, self).__init__(points)
     self.radius = morphmath.average_points_dist(points[0], (points[1],
                                                             points[2]))
コード例 #6
0
ファイル: _soma.py プロジェクト: ZeitgeberH/NeuroM
 def __init__(self, points):
     """Initialize a SomaSimpleContour object."""
     super().__init__(points)
     points = np.array(self._points)
     self.radius = morphmath.average_points_dist(
         self.center, points[:, COLS.XYZ])
コード例 #7
0
ファイル: _soma.py プロジェクト: jdcourcol/NeuroM
 def __init__(self, points):
     super(SomaThreePoint, self).__init__(points)
     self.radius = average_points_dist(points[0], (points[1], points[2]))
コード例 #8
0
 def __init__(self, morphio_soma):
     """Initialize a SomaSimpleContour object."""
     super().__init__(morphio_soma)
     self.radius = morphmath.average_points_dist(self.center,
                                                 self.points[:, COLS.XYZ])