Change synchronization code license to LGPLv2.1
[lttv.git] / lttv / lttv / sync / event_analysis_linreg.h
CommitLineData
70407e86 1/* This file is part of the Linux Trace Toolkit viewer
277e5b53 2 * Copyright (C) 2009, 2010 Benjamin Poirier <benjamin.poirier@polymtl.ca>
70407e86 3 *
277e5b53
BP
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 2.1 of the License, or (at
7 * your option) any later version.
70407e86 8 *
277e5b53
BP
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 * License for more details.
70407e86 13 *
277e5b53
BP
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
70407e86
BP
16 */
17
18#ifndef EVENT_ANALYSIS_LINREG_H
19#define EVENT_ANALYSIS_LINREG_H
20
21#include <glib.h>
22
10341d26 23#include "data_structures.h"
70407e86
BP
24
25
26typedef struct
27{
28 unsigned int n;
29 // notation: s__: sum of __; __2: __ squared; example sd2: sum of d squared
30 double st, st2, sd, sd2, std, x, d0, e;
31} Fit;
32
33typedef struct
34{
35 double errorSum;
36 unsigned int* previousVertex;
37 unsigned int reference;
38} Graph;
39
40typedef struct
41{
42 Fit** fitArray;
43
44 // Graph[]
45 GQueue* graphList;
46
47 // for statistics
48 double* stDev;
49} AnalysisDataLinReg;
50
2f961b65
BP
51void registerAnalysisLinReg();
52
70407e86 53#endif
This page took 0.025818 seconds and 4 git commands to generate.