|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Metric
This interface imposes a metric on the objects supported by it. A metric is a measure for distances.
| d:A×A->R is a metric (or distance function) on A if for all x,y,z,w in A | ||
| (def) | d(x,y)=0 <=> x=y | "(positive?) definite" |
| (s) | d(x,y) = d(y,x) | "symmetric" |
| (Δ) | d(x,y) =< d(x,z) + d(z,y) | "triangular inequality" |
| => (even for half-metrics, i.e. without definite) | ||
| ([]) | |d(x,y) - d(z,w)| =< d(x,z) + d(y,w) | "rectangular inequality" |
| (pos) | d(x,y)>=0 | "positive" |
Normed,
INDUCED,
Comparator| Field Summary | |
|---|---|
static Metric |
INDUCED
The metric induced by a norm ||.||. |
| Method Summary | |
|---|---|
Real |
distance(java.lang.Object x,
java.lang.Object y)
Returns the distance of two objects. |
| Field Detail |
|---|
static final Metric INDUCED
A norm ||.|| on arithmetic objects induces a metric
d:A×A->R; (a,b)|->d(a,b) := ||a-b||.
Normed| Method Detail |
|---|
Real distance(java.lang.Object x,
java.lang.Object y)
Double.NaN if it is symbolic and has no numeric distance.
|
Orbital library 1.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||