-
Notifications
You must be signed in to change notification settings - Fork 0
/
curve.h
46 lines (40 loc) · 1.17 KB
/
curve.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
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef CURVE_H
#define CURVE_H
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class Curve {
int dim, int_id;
string id;
vector<vector<double> > curve;
public:
Curve();
Curve(string, int, int);
Curve(string, int, int, const vector<vector<double> >&);
void set_id(string, int);
void set_dimension(int);
void insert_point(const vector<double>&);
void clear_curve();
int get_dimension() const;
int get_length() const;
string get_id() const;
int get_int_id() const;
double get_coord_point(int, int) const;
const vector<double>& get_point(int) const;
const vector<double>& get_last_point() const;
vector<double> get_convert_vector() const;
bool is_empty() const;
void print_curve() const;
void append_curve(const Curve&);
bool equal_curves(const Curve&) const;
bool operator<(const Curve &curve) const;
};
extern vector<Curve> input_curves;
extern int num_of_clusters;
extern int global_k;
extern int global_L;
extern int method_init;
extern int method_assign;
extern int method_update;
#endif