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

# Class Hausdorff

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

Known Subclasses:
  - HausdorffRadians
  - , HausdorffDegrees
  - , HausdorffDistanceTo

Hausdorff base class, requires method Hausdorff.distance to be overloaded.

Instance Methods
__init__(self, points, seed=None, name=`'````'`, units=`'````'`, **wrap_adjust) New `Hausdorff...` calculator. |
directed(self, points, early=True) Compute only the `forward Hausdorff` distance. |
distance(self, point1, point2) (INTERNAL) Must be overloaded. |
point(self, point) Convert a `model` or `target` point for the `.distance` method. |
symmetric(self, points, early=True) Compute the combined `forward and reverse Hausdorff` distance. |
Inherited from `named._Named`: `__repr__`, `__str__`, `_dot_`, `attrs`, `classof`, `copy`, `toRepr`, `toStr`, `toStr2` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| adjust Get the adjust setting (`bool` or `None` if not applicable).
| datum Get the datum of this calculator (Datum or `None` if not applicable).
| seed Property to get and set the random sampling seed (`Random`).
| units Property to get and set the distance units (`str`).
| wrap Get the wrap setting (`bool` or `None` if not applicable).
Inherited from `named._Named`: `classname`, `classnaming`, `name`, `named`, `named2` Inherited from `object`: `__class__`

Method Details

### __init__ (self, points, seed=None, name=`'````'`, units=`'````'`, **wrap_adjust) (Constructor) |
New `Hausdorff...` calculator. Arguments: `points` - 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, distance units (`str`). `wrap_adjust` - Optionally, `wrap` and unroll longitudes, iff applicable (`bool`) and `adjust` wrapped, unrolled longitudinal delta by the cosine of the mean latitude, iff applicable. Raises: `HausdorffError` - Insufficient number of `points` or an invalid `point`, `seed` or {wrap} or `ajust` not applicable. Overrides: object.__init__

### directed (self, points, early=True) |
Compute only the `forward Hausdorff` distance. Arguments: `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: `HausdorffError` - Insufficient number of `points` or an invalid `point`. Note: See `points` note at HausdorffDistanceTo.

### symmetric (self, points, early=True) |
Compute the combined `forward and reverse Hausdorff` distance. Arguments: `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: `HausdorffError` - Insufficient number of `points` or an invalid `point`. Note: See `points` note at HausdorffDistanceTo.

Property Details

### adjust Get the adjust setting (`bool` or `None` if not applicable). Get method: adjust(self) - Get the adjust setting (`bool` or `None` if not applicable). Set method: immutable(inst, value) - Throws an `AttributeError`, always.

### datum Get the datum of this calculator (Datum or `None` if not applicable). Get method: datum(self) - Get the datum of this calculator (Datum or `None` if not applicable). Set method: immutable(inst, value) - Throws an `AttributeError`, always.

### seed Property to get and set the random sampling seed (`Random`). Get method: seed(self) - Get the random sampling seed (`any` or `None`). Set method: seed(self, seed) - Set the random sampling seed.

### units Property to get and set the distance units (`str`). Get method: units(self) - Get the distance units (`str` or `""`). Set method: units(self, units) - Set the distance units.

### wrap Get the wrap setting (`bool` or `None` if not applicable). Get method: wrap(self) - Get the wrap setting (`bool` or `None` if not applicable). Set method: immutable(inst, value) - Throws an `AttributeError`, always.