Last change
on this file since 8189 was 8189, checked in by kjdon, 20 years ago |
first version of Imperial College's Visualiser code
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
259 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * Similarity computations
|
---|
3 | */
|
---|
4 |
|
---|
5 | double maxlink(double a, double b)
|
---|
6 | {
|
---|
7 | return (a > b? a*99+b: b*99+a)/100;
|
---|
8 | }
|
---|
9 |
|
---|
10 | double minlink(double a, double b)
|
---|
11 | {
|
---|
12 | return (a < b? a*999+b: b*999+a)/1000;
|
---|
13 | }
|
---|
14 |
|
---|
15 | double avelink(double a, double b)
|
---|
16 | {
|
---|
17 | return (a+b)/2;
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.