Exemplo n.º 1
0
 def __init__(self, ambient_manifold, metric=None):
     super(SRVMetric, self).__init__(dim=math.inf,
                                     signature=(math.inf, 0, 0))
     if metric is None:
         if hasattr(ambient_manifold, 'metric'):
             self.ambient_metric = ambient_manifold.metric
         else:
             raise ValueError('Instantiating an object of class '
                              'DiscreteCurves requires either a metric'
                              ' or an ambient manifold'
                              ' equipped with a metric.')
     else:
         self.ambient_metric = metric
     self.l2_metric = lambda n: L2Metric(ambient_manifold, n_landmarks=n)
Exemplo n.º 2
0
 def __init__(self, ambient_manifold):
     super(SRVMetric, self).__init__(dimension=math.inf,
                                     signature=(math.inf, 0, 0))
     self.ambient_metric = ambient_manifold.metric
     self.l2_metric = L2Metric(ambient_manifold=ambient_manifold)
Exemplo n.º 3
0
 def __init__(self, ambient_manifold):
     """Initialize DiscretizedCurves object."""
     super(DiscretizedCurves, self).__init__(dimension=math.inf)
     self.ambient_manifold = ambient_manifold
     self.l2_metric = L2Metric(self.ambient_manifold)
     self.square_root_velocity_metric = SRVMetric(self.ambient_manifold)
Exemplo n.º 4
0
 def __init__(self, ambient_manifold):
     super(DiscreteCurves, self).__init__(dim=math.inf)
     self.ambient_manifold = ambient_manifold
     self.l2_metric = lambda n: L2Metric(
         self.ambient_manifold, n_landmarks=n)
     self.square_root_velocity_metric = SRVMetric(self.ambient_manifold)
Exemplo n.º 5
0
 def __init__(self, ambient_manifold):
     super(DiscretizedCurves, self).__init__(dim=math.inf)
     self.ambient_manifold = ambient_manifold
     self.l2_metric = L2Metric(self.ambient_manifold)
     self.square_root_velocity_metric = SRVMetric(self.ambient_manifold)