MobilityDB  1.0
temporal_similarity.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * This MobilityDB code is provided under The PostgreSQL License.
4  *
5  * Copyright (c) 2016-2021, Université libre de Bruxelles and MobilityDB
6  * contributors
7  *
8  * MobilityDB includes portions of PostGIS version 3 source code released
9  * under the GNU General Public License (GPLv2 or later).
10  * Copyright (c) 2001-2021, PostGIS contributors
11  *
12  * Permission to use, copy, modify, and distribute this software and its
13  * documentation for any purpose, without fee, and without a written
14  * agreement is hereby granted, provided that the above copyright notice and
15  * this paragraph and the following two paragraphs appear in all copies.
16  *
17  * IN NO EVENT SHALL UNIVERSITE LIBRE DE BRUXELLES BE LIABLE TO ANY PARTY FOR
18  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
19  * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
20  * EVEN IF UNIVERSITE LIBRE DE BRUXELLES HAS BEEN ADVISED OF THE POSSIBILITY
21  * OF SUCH DAMAGE.
22  *
23  * UNIVERSITE LIBRE DE BRUXELLES SPECIFICALLY DISCLAIMS ANY WARRANTIES,
24  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
25  * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON
26  * AN "AS IS" BASIS, AND UNIVERSITE LIBRE DE BRUXELLES HAS NO OBLIGATIONS TO
27  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 
28  *
29  *****************************************************************************/
30 
31 #ifndef __TEMPORAL_SIMILARITY_H__
32 #define __TEMPORAL_SIMILARITY_H__
33 
34 #include <postgres.h>
35 
36 typedef enum
37 {
40 } SimFunc;
41 
45 typedef struct
46 {
47  int i;
48  int j;
49 } Match;
50 
55 typedef struct
56 {
57  bool done;
58  int i;
59  int size;
62 
63 #endif /* __TEMPORAL_SIMILARITY_H__ */
64 
65 /*****************************************************************************/
Struct for storing a match.
Definition: temporal_similarity.h:45
int i
Definition: temporal_similarity.h:47
int j
Definition: temporal_similarity.h:48
Definition: temporal_similarity.h:39
bool done
Definition: temporal_similarity.h:57
Match * path
Definition: temporal_similarity.h:60
Struct for storing the state that persists across multiple calls generating the bucket list...
Definition: temporal_similarity.h:55
Definition: temporal_similarity.h:38
int size
Definition: temporal_similarity.h:59
int i
Definition: temporal_similarity.h:58
SimFunc
Definition: temporal_similarity.h:36