|
◆ tinstarr_similarity1()
static double tinstarr_similarity1 |
( |
double * |
dist, |
|
|
const TInstant ** |
instants1, |
|
|
int |
count1, |
|
|
const TInstant ** |
instants2, |
|
|
int |
count2, |
|
|
SimFunc |
simfunc |
|
) |
| |
|
static |
Linear space computation of the similarity distance between two temporal values.
Only two rows of the full matrix are used. - Parameters
-
[in] | instants1,instants2 | Arrays of temporal instants |
[in] | count1,count2 | Number of instants in the arrays |
[in] | simfunc | Similarity function, i.e., Frechet or DTW |
[out] | dist | Array keeping the distances |
|