-
Notifications
You must be signed in to change notification settings - Fork 0
/
Performance.h
40 lines (27 loc) · 1001 Bytes
/
Performance.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
//
// Created by Athos Innocenti on 04/07/21.
//
#ifndef ICP_PERFORMANCE_H
#define ICP_PERFORMANCE_H
#include <random>
#include "IcpManager.h"
class Performance {
public:
Performance(int max_translation, int max_rotation);
virtual ~Performance();
void errorPerAngle(const std::string &original_model, const std::string &transformed_model,
int tries_angle, int angle_step, int max_iterations);
void errorPerIter(const std::string &original_model, const std::string &transformed_model,
int tries_iter, const std::list<int> &max_iter);
private:
template<typename T>
T calculateAvg(const std::list<T> &list);
template<typename T>
void storeData(const std::list<T> &list, const std::string &name_file);
std::ofstream data_file;
std::random_device rd;
std::mt19937 mt;
std::uniform_real_distribution<double> trs_dist;
std::uniform_real_distribution<double> rot_dist;
};
#endif //ICP_PERFORMANCE_H