Generate graphs of broadcasts
[lttv.git] / lttv / lttv / sync / event_matching_broadcast.h
index 3492f0a77d108ad5184b02b64cf7297cd0f50da1..8006cdd1d33e8a99ef9c62cc03267487b5170ff0 100644 (file)
@@ -32,12 +32,37 @@ typedef struct
                totTransmit;
 } MatchingStatsBroadcast;
 
+typedef struct
+{
+       /* This array is used for graphs. It contains file pointers to files where
+        * broadcast differential delay points are output.
+        *
+        * accuracyPoints is divided into three parts depending on the position of an
+     * element accuracyPoints[i][j]:
+     *   Lower triangular part of the matrix
+     *     i > j
+     *     This contains the difference t[i] - t[j] between the times when
+        *     a broadcast was received in trace i and trace j.
+     *   Diagonal part of the matrix
+     *     i = j
+     *     This area is not allocated.
+     *   Upper triangular part of the matrix
+     *     i < j
+     *     This area is not allocated.
+        */
+       FILE*** accuracyPoints;
+
+       // pointsNb[traceNum][traceNum] has the same structure as accuracyPoints
+       unsigned int** pointsNb;
+} MatchingGraphsBroadcast;
+
 typedef struct
 {
        // Broadcast* pendingBroadcasts[dataStart]
        GHashTable* pendingBroadcasts;
 
        MatchingStatsBroadcast* stats;
+       MatchingGraphsBroadcast* graphs;
 } MatchingDataBroadcast;
 
 #endif
This page took 0.023353 seconds and 4 git commands to generate.