Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Page 1
Example
Page 2
Example (Complete)
Index Data series Similarity measure Pattern Threshold
1 -1 10 40 100
2 2 490 30
3 -2 1210 20
4 3 2330 10
5 41 3320
6 38 2370
7 22 1190
8 10
9 -1
10 3
Page 3
Example (Complete)
Best match location in G2 Expected Column C Difference C-I
5 10 0
490 0
1210 0
2330 0
3320 0
2370 0
1190 0
Page 4
Test1
Index Data series Similarity measure Pattern Threshold
1 29 30 2000
2 41 40
3 38 30
4 22 20
5 10 10
6 18 20
7 -4
8 -2
9 -1
10 3
11 40
12 30
13 20
14 10
Page 5
Test1
Best match location in G2 Expected Column C Difference C-I
1 4550 -4550
3710 -3710
2600 -2600
1480 -1480
910 -910
1130 -1130
830 -830
The expected answer is cell G2 is 1490 -1490
1. 2290 -2290
Page 6
Test2
Index Data series Similarity measure Pattern Threshold
1 -3.4 30 2000
2 41.0 40
3 38.0 30
4 22.0 20
5 10.0 10
6 18.0
7 -4.0
8 -2.0
9 40.2
10 40.4
11 40.0
12 30.8
13 20.0
14 10.9
Run PatternSearch
Page 7
Test2
Best match location in G2 Expected Column C Difference C-I
9 3218 -3218
3790 -3790
2640 -2640
1500 -1500
1262 -1262
1528 -1528
2214 -2214
The expected answer In cell G2 is 3868 -3868
9. 4838 -4838
4245 -4245
Run PatternSearch
Page 8
Test (insufficient data)
Index Data series Similarity measure Pattern Threshold
1 -1 40 100
2 2 30
3 -2 20
10
Page 9
Test (insufficient data)
Best match location in G2 Expected Column C Difference C-I
Page 10
Test (FindPatternLength)
Pattern
30
40
30
20
10
20
70
Page 11
Test (FindPatternLength)
Page 12
Test (RowNumberAtMax)
Similarity measure
3218
3790
2640
1500
1262
1528
2214
3868
4838
4245
Page 13
Test (RowNumberAtMax)
#VALUE!
Page 14
Test (RowNumberAtMax)
Page 15
Test (RowNumberAtMax)
Page 16
Test (CalculateSimilarity)
Data series Similarity measure Pattern
-3.4 #VALUE! 30
41.0 #VALUE! 40
38.0 #VALUE! 30
22.0 #VALUE! 20
10.0 #VALUE! 10
18.0 #VALUE!
-4.0 #VALUE!
-2.0 #VALUE!
40.2 #VALUE!
40.4 #VALUE!
40.0
30.8
20.0
10.9
Page 17
Test (CalculateSimilarity)
Expected Column C Difference C-I
3218 #VALUE!
3790 #VALUE!
2640 #VALUE!
1500 #VALUE!
1262 #VALUE!
1528 #VALUE!
This worksheet allows you to test 2214 #VALUE!
the function CalculateSimilarity. 3868 #VALUE!
Formulas using the function have 4838 #VALUE!
been entered in column C. The 4245 #VALUE!
expected answers are in column I.
If your function works correctly,
column J should show 0.
Page 18