A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
loba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a VERSION file, for the distrib.
[loba.git]
/
cost_func.h
diff --git
a/cost_func.h
b/cost_func.h
index d7310d2d412bb789ee1638bba3f09e1e7a8b8d5e..c6984d22da552ffadbd23dcc6b318411cd67f8c4 100644
(file)
--- a/
cost_func.h
+++ b/
cost_func.h
@@
-3,6
+3,7
@@
#include <iostream>
#include <string>
#include <iostream>
#include <string>
+#include <vector>
// Define a polynomial function
// The factors are given at construction time, in a C-style string,
// Define a polynomial function
// The factors are given at construction time, in a C-style string,
@@
-11,13
+12,12
@@
class cost_func {
public:
cost_func(const char* param);
~cost_func();
public:
cost_func(const char* param);
~cost_func();
- cost_func& operator=(const cost_func& ref);
double operator()(double amount) const;
std::string to_string();
double operator()(double amount) const;
std::string to_string();
+
private:
private:
- int degree;
- double* factor;
+ std::vector<double> factors;
};
#endif // !COST_FUNC_H
};
#endif // !COST_FUNC_H