Package pygeodesy :: Module hausdorff :: Class HausdorffVincentys
[frames] | no frames]

Class HausdorffVincentys

  object --+            
           |            
named._Named --+        
               |        
       Hausdorff --+    
                   |    
    HausdorffRadians --+
                       |
                      HausdorffVincentys

Compute the Hausdorff distance based on the angular Vincenty distance (in radians) from function vincentys_.


Note: See note under vincentys_.

See Also: HausdorffEquirectangular, HausdorffEuclidean, HausdorffHaversine and HausdorffKarney.

Instance Methods
 
__init__(self, points, wrap=False, seed=None, name='')
New HausdorffVincentys calculator.
 
distance(self, p1, p2)
Return the vincentys_ distance in radians.
 
directed(self, points, early=True)
Compute only the forward Hausdorff distance.
 
symmetric(self, points, early=True)
Compute the combined forward and reverse Hausdorff distance.

Inherited from HausdorffRadians: point

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 Hausdorff: seed, units

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

Inherited from object: __class__

Method Details

__init__(self, points, wrap=False, seed=None, name='')
(Constructor)

 

New HausdorffVincentys calculator.

Parameters:
  • points - Initial set of points, aka the model or template (LatLon[], Numpy2LatLon[], Tuple2LatLon[] or other[]).
  • wrap - Wrap and unroll180 longitudes (bool).
  • seed - Random sampling seed (any) or None, 0 or False for no random sampling.
  • name - Optional calculator name (str).
Raises:
Overrides: object.__init__

distance(self, p1, p2)

 

Return the vincentys_ distance in radians.

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

directed(self, points, early=True)

 

Compute only the forward Hausdorff distance.

Parameters:
  • points - Second set of points, aka the target (LatLon[], Numpy2LatLon[], Tuple2LatLon[] or other[]).
  • early - Enable or disable early breaking (bool).
Returns:
A Hausdorff6Tuple(hd, i, j, mn, md, units).
Raises:
Overrides: Hausdorff.directed

symmetric(self, points, early=True)

 

Compute the combined forward and reverse Hausdorff distance.

Parameters:
  • points - Second set of points, aka the target (LatLon[], Numpy2LatLon[], Tuple2LatLon[] or other[]).
  • early - Enable or disable early breaking (bool).
Returns:
A Hausdorff6Tuple(hd, i, j, mn, md, units).
Raises:
Overrides: Hausdorff.symmetric