author | Christian Urban <christian.urban@kcl.ac.uk> |
Mon, 06 Nov 2023 21:49:55 +0000 | |
changeset 480 | a623dd1f2898 |
parent 473 | ac79c2e534bd |
permissions | -rw-r--r-- |
211 | 1 |
|
2 |
||
473 | 3 |
def urbanmain() = { |
4 |
import C2._ |
|
211 | 5 |
|
473 | 6 |
val urban_list1 = List("a", "b", "b", "c", "d") |
7 |
val urban_list2 = List("d", "b", "d", "b", "d") |
|
211 | 8 |
|
473 | 9 |
assert(overlap(urban_list1, urban_list2) == 0.5384615384615384) |
10 |
assert(overlap(urban_list1, urban_list1) == 1.0) |
|
11 |
assert(overlap(urban_list2, urban_list2) == 1.0) |
|
12 |
} |