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

Class HausdorffRadians

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

Hausdorff base class for distances from LatLon points converted from degrees to radians.

Instance Methods
 
__init__(self, point1s, seed=None, name='', units='', **kwds)
New Hausdorff... calculator.
 
directed(self, point2s, early=True)
Compute only the forward Hausdorff distance.
 
symmetric(self, point2s, early=True)
Compute the combined forward and reverse Hausdorff distance.
 
distance(self, point1, point2)
Return the distance in radians between point1 and point2.
 
point(self, point)
Return point as PhiLam2Tuple to maintain backward compatibility of HausdorffRadians.

Inherited from named._Named: __imatmul__, __matmul__, __repr__, __rmatmul__, __str__, attrs, classof, copy, dup, methodname, rename, toRepr, toStr, toStr2

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

Properties

Inherited from Hausdorff: adjust, datum, kwds, seed, units, wrap

Inherited from named._Named: classname, classnaming, iteration, name, named, named2, named3, named4, sizeof

Inherited from object: __class__

Method Details

__init__ (self, point1s, seed=None, name='', units='', **kwds)
(Constructor)

 

New Hausdorff... calculator.

Arguments:
  • point1s - Initial set of points, aka the model or template (LatLon[], Numpy2LatLon[], Tuple2LatLon[] or other[]).
  • seed - Random sampling seed (any) or None, 0 or False for no random sampling.
  • name - Optional name for this interpolator (str).
  • units - Optional, the distance units (Unit or str).
  • kwds - Optional keyword argument for distance function, retrievable with property kwds.
Raises:
  • HausdorffError - Insufficient number of point1s or an invalid point1, seed or units.
Overrides: object.__init__

directed (self, point2s, early=True)

 

Compute only the forward Hausdorff distance.

Arguments:
  • point2s - 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:
  • HausdorffError - Insufficient number of point2s or an invalid point2.
Overrides: Hausdorff.directed

Note: See point2s note at HausdorffDistanceTo.

symmetric (self, point2s, early=True)

 

Compute the combined forward and reverse Hausdorff distance.

Arguments:
  • point2s - 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:
  • HausdorffError - Insufficient number of point2s or an invalid point2.
Overrides: Hausdorff.symmetric

Note: See point2s note at HausdorffDistanceTo.

distance (self, point1, point2)

 

Return the distance in radians between point1 and point2. Must be overloaded.

Overrides: Hausdorff.distance

point (self, point)

 

Return point as PhiLam2Tuple to maintain backward compatibility of HausdorffRadians.

Returns:
A PhiLam2Tuple(phi, lam).
Overrides: Hausdorff.point