]> AND Private Git Repository - loba.git/blob - cost_func.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Add default auto_depl::topology...
[loba.git] / cost_func.h
1 #ifndef COST_FUNC_H
2 #define COST_FUNC_H
3
4 #include <iostream>
5 #include <string>
6
7 class cost_func {
8 public:
9     cost_func(const char* param);
10     ~cost_func();
11     cost_func& operator=(const cost_func& ref);
12
13     double operator()(double amount) const;
14     std::string to_string();
15 private:
16     int degree;
17     double* factor;
18 };
19
20 #endif // !COST_FUNC_H
21
22 // Local Variables:
23 // mode: c++
24 // End: