forked from jacquelineCelia/hdphmm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bound.h
58 lines (52 loc) · 1.54 KB
/
bound.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
47
48
49
50
51
52
53
54
55
56
57
58
/* -*- C++ -*-
*
* Copyright (c) 2014
* Spoken Language Systems Group
* MIT Computer Science and Artificial Intelligence Laboratory
* Massachusetts Institute of Technology
*
* All Rights Reserved
./bound.h
* FILE: cluster.cc *
* *
* *
* Chia-ying (Jackie) Lee <[email protected]> *
* Feb 2014 *
*********************************************************************/
#ifndef BOUND_H
#define BOUND_H
#include <vector>
#include "config.h"
using namespace std;
class Bound {
public:
Bound(Config*);
int dim() {return _dim;}
int frame_num() {return _frame_num;}
int label() {return _label;}
int start_frame() {return _start_frame;}
int end_frame() {return _end_frame;}
bool is_labeled() {return _is_labeled;}
bool is_boundary() {return _is_boundary;}
void set_is_labeled(bool value) {_is_labeled = value;}
void set_is_boundary(bool value) {_is_boundary = value;}
void set_label(int label) {_label = label;}
void set_start_frame(int start_frame) {_start_frame = start_frame;}
void set_end_frame(int end_frame) {_end_frame = end_frame;}
void set_data(float** data, int frame_num);
void print_data();
vector<float*> data() {return _data_array;}
~Bound();
private:
float** _data;
int _frame_num;
int _dim;
int _label;
int _start_frame;
int _end_frame;
bool _is_labeled;
bool _is_boundary;
Config* _config;
vector<float*> _data_array;
};
#endif