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

Class FrechetRadians

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

DEPRECATED, use an other Frechet* class.

Instance Methods
 
__init__(self, point1s, fraction=None, units='', **name__kwds)
New Frechet... calculator/interpolator.
 
discrete(self, point2s, fraction=None)
Compute the forward, discrete Fréchet distance.
 
distance(self, point1, point2, *args, **kwds)
Must be overloaded.
 
point(self, point)
Return point as PhiLam2Tuple to maintain backward compatibility of FrechetRadians.

Inherited from Frechet: points_, points_fraction

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

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

Properties

Inherited from Frechet: adjust, datum, fraction, kwds, units, wrap

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

Inherited from object: __class__

Method Details

__init__ (self, point1s, fraction=None, units='', **name__kwds)
(Constructor)

 

New Frechet... calculator/interpolator.

Arguments:
  • point1s - First set of points (LatLon[], Numpy2LatLon[], Tuple2LatLon[] or other[]).
  • fraction - Index fraction (float in EPS..EPS1) to interpolate intermediate point1s or use None, 0 or 1 for no intermediate point1s and no fractional indices.
  • units - Optional distance units (Unit or str).
  • name__kwds - Optional name=NN for this calculator/interpolator (str) and any keyword arguments for the distance function, retrievable with property kwds.
Raises:
  • FrechetError - Insufficient number of point1s or an invalid point1, fraction or units.
Overrides: object.__init__

discrete (self, point2s, fraction=None)

 

Compute the forward, discrete Fréchet distance.

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

distance (self, point1, point2, *args, **kwds)

 

Must be overloaded.

Overrides: Frechet.distance

point (self, point)

 

Return point as PhiLam2Tuple to maintain backward compatibility of FrechetRadians.

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