-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpredictor.hpp
More file actions
47 lines (40 loc) · 1.08 KB
/
predictor.hpp
File metadata and controls
47 lines (40 loc) · 1.08 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef PREDICTOR_H
#define PREDICTOR_H
#include <iostream>
#include <cstdio>
#include <vector>
#include <cstdlib>
#include <math.h>
#include <Eigen/Dense>
#include "commondefs.hpp"
#include "drawer.hpp"
#include "parser.hpp"
#define checkstep
// #define endpoints
using namespace std;
class Predictor {
private:
vector<Point> input_data;
vector<MetaData> pred_data;
vector<Feature> features;
Parser pr;
Drawer dr;
double lineFit(int start, int end, Line &l);
double lineSegmentFit(int start, int end, LineSegment &l);
void circleFit(int start, int end, Circle &c);
Line getPredLine(int index);
Line getPredRay(int index);
Point getPredPoint(int index);
double getPredThreshold(int index);
public:
static int NP, RMAX, NORM;
static double D0,QTH;
void draw();
void update();
void getRawData();
void predict();
void extractFeatures();
// void getStats();//print variance, covariance, falspositives, etc
Predictor();
};
#endif