Class MinkowskiMetric
java.lang.Object
org.episteme.core.mathematics.topology.metrics.MinkowskiMetric
Minkowski metric (Lp norm).
d(x,y) = (Σ|xᵢ - yᵢ|ᵖ)^(1/p)
Special cases: - p = 1: Manhattan metric - p = 2: Euclidean metric - p = ∞: Chebyshev metric
*
Reference:
Minkowski, H. (1908). Raum und Zeit. Physikalische Zeitschrift, 10, 104-111.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionMinkowskiMetric(double p) Creates a Minkowski metric with the given p value.Creates a Minkowski metric with the given p value. -
Method Summary
-
Constructor Details
-
MinkowskiMetric
Creates a Minkowski metric with the given p value.- Parameters:
p- the power (must be >= 1)
-
MinkowskiMetric
public MinkowskiMetric(double p) Creates a Minkowski metric with the given p value.- Parameters:
p- the power (must be >= 1)
-
-
Method Details