Loading...

Window Affinity

Given two seller windows: (W_1),(W_2)

Their windows are [(ℇ_i),(l_i)]

We calculate the projection of (W_1) in (W_2) as:

P = [(e_1)+(st_1)+(tt_1,2),(l_1)+(tt_1,2)]

Then, we intersect the projection with (W_2)

I= P∩(W_2)

Finally, we measure affinity as a= (l_I) - (e_I), the amount of seconds in the intersection.

Alternatively, we may consider dividing the affinit a by the (tt_1,2), representing the amount of affinity seconds per second of travel.