-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEDM.h
33 lines (27 loc) · 1.04 KB
/
EDM.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* This File declares our class and structure
* for the breakpoint detection algorithm
*
* Author: Yash Gupta
* Copyright: Yash Gupta, SSRC - UC Santa Cruz
*/
#include "IntervalTree.h"
class Breakpoint {
long tau; // EDM Variable
long kappa; // EDM Variable
double bestStat; // EDM Variable
double *timeSeries; // Time series containing the observations
long timeSeriesCount; // Observations in time series
long delta; // Delta variable which breaks up total observations in series
long treeDepth; // Depth of tree to be made
long bestLocation; // Breakpoint Location
IntervalTree *wiDistLeft; // Left half of within distance tree (T-a)
IntervalTree *wiDistRight; // Right half of within distance tree (T-b)
IntervalTree *bwDistTree; // The between distance tree (T-ab)
public:
Breakpoint(double*, long, long, long);
~Breakpoint();
long getBreakpointLocation();
void forwardUpdate();
void backwardUpate();
};