170
|
1 |
|
|
2 |
// paste in the actual values
|
158
|
3 |
|
169
|
4 |
val urban_prices1 = CW6c.get_prices(List("BIDU"), 2004 to 2008)
|
|
5 |
val urban_prices2 = CW6c.get_prices(List("GOOG", "AAPL"), 2010 to 2012)
|
158
|
6 |
|
|
7 |
|
169
|
8 |
assert(CW6c.get_deltas(urban_prices1) ==
|
|
9 |
List(List(None), List(None),
|
|
10 |
List(Some(0.9277165354330709)), List(Some(2.119679764725104))))
|
158
|
11 |
|
169
|
12 |
assert(CW6c.get_deltas(urban_prices2) ==
|
|
13 |
List(List(Some(-0.03573992567129673), Some(0.5399749442411563)),
|
|
14 |
List(Some(0.10103412653643493), Some(0.2477771728154912))))
|