Interface MetricSpace<T>

All Superinterfaces:
Set<T>, TopologicalSpace<T>
All Known Subinterfaces:
SpacetimeMetric
All Known Implementing Classes:
KerrMetric, Point2D, Point3D, PointND, SchwarzschildMetric, Vector2D, Vector3D, Vector4D, VectorND

public interface MetricSpace<T> extends TopologicalSpace<T>
Represents a metric space.

A metric space is a topological space equipped with a distance function (metric) that satisfies the metric axioms.

*

Reference:
Fréchet, M. (1906). Sur quelques points du calcul fonctionnel. Rendiconti del Circolo Matematico di Palermo.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • distance

      Real distance(T a, T b)
      Computes the distance between two points.
      Parameters:
      a - the first point
      b - the second point
      Returns:
      the distance between a and b