>>> from munin.distance import DateDistance
>>> dfunc = DateDistance()
>>> dfunc.do_compute((1970,), (2014))
1.0
>>> dfunc.do_compute((1970,), (1970))
0.0
>>> dfunc.do_compute((2014,), (1992))
0.5
Compare the distance of two years, map them inbetween [0.0, 1.0]
As minimal year 1970 is assumed, as maximal year the current year.
Compare the distance of two years, map them inbetween [0.0, 1.0]
As minimal year 1970 is assumed, as maximal year the current year.