-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcubeBased.h
More file actions
35 lines (30 loc) · 750 Bytes
/
cubeBased.h
File metadata and controls
35 lines (30 loc) · 750 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
27
28
29
30
31
32
33
34
35
//
// Created by Yinan Zhou on 6/10/21.
//
#ifndef FINAL_CS206_CUBEBASED_H
#define FINAL_CS206_CUBEBASED_H
#include <vector>
class CubeBasedEstimator
{
public:
int dimension;
double target_volume;
double K;
double cube_l;
double max_to_surface;
double in_threshold;
double out_threshold;
std::vector<double> cube_center;
std::vector<double> original_cube_center;
double in_cubes_count;
double out_cubes_count;
double processed_cubes_count;
double total_cubes;
CubeBasedEstimator(int,double,bool);
bool has_vertex_in();
bool has_vertex_out();
int phi_cube();
void cube_based_estimate();
void iterate_through_all_cubes(int current_d);
};
#endif //FINAL_CS206_CUBEBASED_H