Quote (feanur @ Feb 23 2016 04:42am)
Correct.
Notice that the second and the third are the same :
max(x,y) - min(x,y) = x - y or y - x.
In both cases, after you square it, you get |x-y|².
For the last :
* it obviously gives a non-negative real,
* since t -> 1 / (1+t²) is a positive continuous function, the only way to have its integral being zero is when x1 = x2.
* obviously ρ(x1,x2) = ρ(x2,x1)
* for the triangle inequality, you can consider 2 cases :
if x ≤ y ≤ z (or if x ≥ y ≥ z ), you'd have ρ(x,z) = ρ(x,y) + ρ(y,z)
if y is not inbetween x and z, then :
ρ(x,z) ≤ ρ(x,y) if x < z < y or y < x < z
or, ρ(x,z) ≤ ρ(y,z) if y < x < z or z < x < y.
Thanks! Also could u help with the triangle inequality for the max/min metric. Can pay more for ur help
