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

Class FrechetRadians

  object --+        
           |        
named._Named --+    
               |    
         Frechet --+
                   |
                  FrechetRadians
Known Subclasses:

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

Instance Methods
 
discrete(self, points, fraction=None)
Compute the forward, discrete Fréchet distance.
 
point(self, point)
Convert (lat, lon) point in degrees to (a, b) in radians.

Inherited from Frechet: __init__, distance, 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

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

point(self, point)

 

Convert (lat, lon) point in degrees to (a, b) in radians.

Parameters:
  • point - The point to convert ((LatLon, Numpy2LatLon, Tuple2LatLon or other).
Returns:
An PhiLam2Tuple(phi, lam).
Overrides: Frechet.point