Package pygeodesy :: Module frechet :: Class FrechetEuclidean
[frames] | no frames]

Class FrechetEuclidean

  object --+            
           |            
named._Named --+        
               |        
         Frechet --+    
                   |    
      FrechetRadians --+
                       |
                      FrechetEuclidean

Compute the Frechet distance based on the Euclidean distance (in radians) from function euclidean_.


See Also: FrechetEquirectangular, FrechetHaversine and FrechetVincentys.

Instance Methods
 
__init__(self, points, adjust=True, fraction=None, name='')
New FrechetEuclidean calculator/interpolator.
 
distance(self, p1, p2)
Return the euclidean_ distance in radians.
 
discrete(self, points, fraction=None)
Compute the forward, discrete Fréchet distance.

Inherited from FrechetRadians: point

Inherited from Frechet: points_, points_fraction

Inherited from named._Named: __copy__, __repr__, __str__, classof, copy, toStr, toStr2

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from Frechet: fraction, units

Inherited from named._Named: classname, classnaming, name, named, named2

Inherited from object: __class__

Method Details

__init__(self, points, adjust=True, fraction=None, name='')
(Constructor)

 

New FrechetEuclidean calculator/interpolator.

Parameters:
  • points - First set of points (LatLon[], Numpy2LatLon[], Tuple2LatLon[] or other[]).
  • adjust - Adjust the wrapped, unrolled longitudinal delta by the cosine of the mean latitude (bool).
  • fraction - Index fraction (float in EPS..EPS1) to interpolate intermediate points or None or 1 for no intermediate points and no fractional indices.
  • name - Optional calculator/interpolator name (str).
Raises:
  • FrechetError - Insufficient number of points or invalid fraction.
Overrides: object.__init__

distance(self, p1, p2)

 

Return the euclidean_ distance in radians.

Raises:
  • AssertionError - Not overloaded.
Overrides: Frechet.distance

discrete(self, points, fraction=None)

 

Compute the forward, discrete Fréchet distance.

Parameters:
  • points - Second set of points (LatLon[], Numpy2LatLon[], Tuple2LatLon[] or other[]).
  • fraction - Index fraction (float in EPS..EPS1) to interpolate intermediate points or None or 1 for no intermediate points and no fractional indices.
Returns:
A Frechet6Tuple(fd, fi1, fi2, r, n, units).
Raises:
Overrides: Frechet.discrete