-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRandomTree.h
More file actions
26 lines (16 loc) · 779 Bytes
/
RandomTree.h
File metadata and controls
26 lines (16 loc) · 779 Bytes
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
#include "Split.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
typedef struct RandomTree *RandomTree;
RandomTree createRandomTree(TimeSerieArray time_serie_samples, int l, int u, int r);
Shapelet sampleShapelet(TimeSerieArray time_serie_samples, int l, int u);
Split bestSplit(TimeSerieArray time_serie_samples, TimeSerieArray shapelet_candidates);
void distribute(Split split, TimeSerieArray left, TimeSerieArray right);
int randomUniformIndex(int min, int max);
int mostProbableLabel(TimeSerieArray array);
int maxInt(int *array, int size);
double gain(DistanceMap distance_map, double threshold);
double gap(DistanceMap distance_map, double threshold);
double entropy(int *label_counter, int size);
double *findBestThreshold(DistanceMap distance_map);